From 43c26390ed25339f9f5870f6b3b8af734a2aa6b3 Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Sun, 17 Sep 2017 14:35:53 +0200 Subject: [PATCH] [packaging] Add PKGBUILD for AUR building AUR package for released versions of bumblebee-status should now be available here: https://aur.archlinux.org/packages/bumblebee-status/ fixes #172 --- PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..ff7335e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Tobias Witek +# Contributor: Daniel M. Capella + +pkgname=bumblebee-status +pkgver=1.4.2 +pkgrel=1 +pkgdesc='Modular, theme-able status line generator for the i3 window manager' +arch=('any') +url=https://github.com/tobi-wan-kenobi/bumblebee-status +license=('MIT') +depends=('python-netifaces' 'python-psutil' 'python-requests') +optdepends=('xorg-xbacklight: to display a displays brightness' + 'xorg-xset: enable/disable automatic screen locking' + 'libnotify: enable/disable automatic screen locking' + 'dnf: display DNF package update information' + 'xorg-setxkbmap: display/change the current keyboard layout' + 'redshift: display the redshifts current color' + 'pulseaudio: control pulseaudio sink/sources' + 'xorg-xrandr: enable/disable screen outputs' + 'pacman: display current status of pacman' + 'iputils: display a ping' + 'i3ipc: display titlebar' + 'fakeroot: dependency of the pacman module') +source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") +sha512sums=('3a66fc469dd3b081337c9e213a1b2262f25f30977ee6ef65b9fa5a8b6aa341637832d1a5dbb74e30d68e2824e0d19d7a911eb3390dc6062707a552f429b483e8') + +package() { + install -d "$pkgdir"/usr/bin \ + "$pkgdir"/usr/share/$pkgname/{bumblebee/modules,themes/icons} + ln -s /usr/share/$pkgname/$pkgname "$pkgdir"/usr/bin/$pkgname + + cd $pkgname-$pkgver + cp -a --parents $pkgname bumblebee/{,modules/}*.py themes/{,icons/}*.json \ + "$pkgdir"/usr/share/$pkgname + + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +}