# Maintainer: Tobias Witek # Contributor: Daniel M. Capella # Contributor: spookykidmm pkgname=bumblebee-status pkgver=2.2.0 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' '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' 'python-i3ipc: display titlebar' 'fakeroot: dependency of the pacman module' 'python-pytz: timezone conversion for datetimetz module' 'python-tzlocal: retrieve system timezone for datetimetz module' ) source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") sha512sums=('837f23325e342df02e0a27d2b124a29a6f901282e882ee3a69282fda8a7fd71babff06bfdd0e2427e82c63eecbd860bdcc67b0572260550455dcce6553f4fa42') package() { install -d "$pkgdir"/usr/bin \ "$pkgdir"/usr/share/$pkgname/bumblebee_status/{core,util} \ "$pkgdir"/usr/share/$pkgname/bumblebee_status/modules/{core,contrib} \ "$pkgdir"/usr/share/$pkgname/themes/icons ln -s /usr/share/$pkgname/$pkgname "$pkgdir"/usr/bin/$pkgname ln -s /usr/share/$pkgname/bumblebee-ctl "$pkgdir"/usr/bin/bumblebee-ctl cd $pkgname-$pkgver cp -a --parents $pkgname bumblebee_status/{,core/,util/,modules/core/,modules/contrib/}*.py \ themes/{,icons/}*.json $pkgdir/usr/share/$pkgname cp -r bin $pkgdir/usr/share/$pkgname/ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE }