Advertisement
yochananmarqos

caffeine-ng

Jan 18th, 2021
403
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.18 KB | None | 0 0
  1. # Maintainer: Hugo Osvaldo Barrera <hugo@barrera.io>
  2.  
  3. pkgname=caffeine-ng
  4. pkgver=3.5.0+2+gac736cd
  5. pkgrel=1
  6. pkgdesc="Status bar application able to temporarily inhibit the screensaver and sleep mode."
  7. arch=(any)
  8. url="https://github.com/caffeine-ng/caffeine-ng"
  9. license=(GPL3)
  10. depends=(python-gobject python-xdg python-dbus python-docopt python-ewmh gtk3
  11.          libnotify python-setproctitle python-setuptools python-wheel python-pulsectl)
  12. optdepends=("libappindicator-gtk3: AppIndictor support (eg: Plasma, Unity).")
  13. makedepends=(git python-setuptools-scm)
  14. conflicts=(caffeine caffeine-bzr caffeine-oneclick caffeine-systray)
  15. provides=(caffeine caffeine-bzr caffeine-oneclick caffeine-systray)
  16. replaces=(caffeine-oneclick caffeine-systray)
  17. _commit=ac736cd961ff3d484c1b0fcacf0113673cc2709d
  18. source=("git+https://github.com/caffeine-ng/caffeine-ng.git#commit=$_commit")
  19. md5sums=('SKIP')
  20.  
  21. pkgver() {
  22.   cd "$srcdir"/caffeine-ng
  23.   git describe --tags | sed 's/^v//;s/-/+/g'
  24. }
  25.  
  26. build() {
  27.   cd "$srcdir"/caffeine-ng
  28.   python setup.py build
  29. }
  30.  
  31. package() {
  32.   cd "$srcdir"/caffeine-ng
  33.   export PYTHONHASHSEED=0
  34.   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement