Advertisement
yochananmarqos

nohang

Mar 17th, 2021
1,175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.81 KB | None | 0 0
  1. pkgname=nohang
  2. pkgver=0.2.0
  3. pkgrel=1
  4. pkgdesc="A sophisticated low memory handler."
  5. arch=('any')
  6. url="https://github.com/hakavlad/nohang"
  7. license=('MIT')
  8. depends=('python' 'systemd')
  9. makedepends=('git')
  10. optdepends=('libnotify: notification server'
  11.             'logroate: logrotate support'
  12.             'sudo: if nohang started with UID=0')
  13. backup=("etc/$pkgname/$pkgname.conf"
  14.         "etc/$pkgname/$pkgname-desktop.conf"
  15.         "etc/logrotate.d/$pkgname")
  16. source=("git+https://github.com/hakavlad/nohang.git#tag=v$pkgver")
  17. sha256sums=('SKIP')
  18.  
  19. package() {
  20.     cd "$srcdir/$pkgname"
  21.     make \
  22.         DESTDIR="$pkgdir" \
  23.         PREFIX='/usr' \
  24.         SBINDIR='/usr/bin' \
  25.         SYSCONFDIR='/etc' \
  26.         SYSTEMDUNITDIR='/usr/lib/systemd/system' \
  27.         base units
  28.  
  29.     install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement