PKGBUILD 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Maintainer: bill-auger <bill-auger@programmer.net>
  2. pkgname=beanstalkd
  3. pkgver=1.11
  4. pkgrel=1
  5. pkgdesc="simple, fast work-queue server"
  6. arch=('armv7h' 'i686' 'x86_64')
  7. url=https://beanstalkd.github.io/
  8. license=('MIT')
  9. source=($pkgname-$pkgver::https://github.com/beanstalkd/beanstalkd/archive/v${pkgver}.tar.gz
  10. beanstalkd@.service
  11. beanstalkd.service
  12. fix-warnings.patch)
  13. sha256sums=('5e3414e49d00e9ef9530897983e56bdba98da6f8f1f30f5fe7e6064b2f68c544'
  14. '57004d06ed38973e4bba47c92d1461e77e58027818c1899352ace95fb400f937'
  15. '9ea87a132244a7b32a2a59ff55d4f809cb109d9021e00014b18fe9883d96b6b6'
  16. 'fcb9eaba50bd2bc78e8be9fc05a99501fa38bbe35e7e4568cf8363afe0ee4ac4')
  17. prepare()
  18. {
  19. cd "$srcdir"/$pkgname-$pkgver
  20. # https://github.com/beanstalkd/beanstalkd/pull/575
  21. patch -p1 < "$srcdir"/fix-warnings.patch
  22. }
  23. build()
  24. {
  25. cd "$srcdir"/$pkgname-$pkgver
  26. make CFLAGS="${CFLAGS}"
  27. }
  28. check()
  29. {
  30. cd "$srcdir"/$pkgname-$pkgver
  31. # check requires network
  32. # make check
  33. }
  34. package()
  35. {
  36. cd "$srcdir"/$pkgname-$pkgver
  37. make DESTDIR="$pkgdir"/ PREFIX=/usr install
  38. install -Dm644 "${srcdir}"/beanstalkd.service "${pkgdir}"/usr/lib/systemd/system/beanstalkd.service
  39. install -Dm644 "${srcdir}"/beanstalkd@.service "${pkgdir}"/usr/lib/systemd/system/beanstalkd@.service
  40. install -Dm644 adm/systemd/beanstalkd.socket "${pkgdir}"/usr/lib/systemd/system/beanstalkd.socket
  41. install -Dm644 doc/beanstalkd.1 "${pkgdir}"/usr/share/man/man1/beanstalkd.1
  42. }