PKGBUILD 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # Maintainer: Andreas Radke <andyrtr@archlinux.org>
  2. # Contributor: Sergej Pupykin <sergej@aur.archlinux.org>
  3. pkgname=man-db
  4. pkgver=2.8.4
  5. pkgrel=1
  6. pkgdesc="A utility for reading man pages"
  7. arch=(x86_64 ppc64le)
  8. url="http://www.nongnu.org/man-db/"
  9. license=('GPL' 'LGPL')
  10. groups=('base')
  11. depends=( 'bash' 'gdbm' 'zlib' 'groff' 'libpipeline' 'less' 'libseccomp')
  12. makedepends=('po4a')
  13. optdepends=('gzip')
  14. backup=('etc/man_db.conf')
  15. conflicts=('man')
  16. provides=('man')
  17. replaces=('man')
  18. install=${pkgname}.install
  19. source=(#https://download-mirror.savannah.gnu.org/releases/man-db/$pkgname-$pkgver.tar.xz{,.sig}
  20. https://savannah.nongnu.org/download/man-db/$pkgname-$pkgver.tar.xz{,.asc}
  21. convert-mans
  22. man-db.{timer,service})
  23. validpgpkeys=('AC0A4FF12611B6FCCF01C111393587D97D86500B') # Colin Watson <cjwatson@debian.org>
  24. sha512sums=('3cc160a5a8a0a4e918f6f6546582d1e5fe9851a13c5bd8dc94e3fcbf4ec28cb3cd1524b1ae30722931c84981fa8ca9ac64c9c4d9544c2d0bea80ac9f39cb5e66'
  25. 'SKIP'
  26. '0b159285da20008f0fc0afb21f1eaebd39e8df5b0594880aa0e8a913b656608b8d16bb8d279d9e62d7aae52f62cb9b2fc49e237c6711f4a5170972b38d345535'
  27. '2ed529500fbe18ba00ac7a6fc4c9da59e396464afb256db33f462b1127e497916602370e65e485c8d788c839f5b1b1130028502f61e1cc9ec8571ad6dd993738'
  28. '76f8d51866418b612a72deaf3b07134d416a6d014dd3883fa78e08683c6b08553f483a4384ac87da25ac9896faa4807842fc69c42950cefe3c1c0590883aa600')
  29. build() {
  30. cd ${pkgname}-${pkgver}
  31. ./configure --prefix=/usr \
  32. --sbindir=/usr/bin \
  33. --sysconfdir=/etc \
  34. --libexecdir=/usr/lib \
  35. --with-db=gdbm \
  36. --disable-setuid \
  37. --enable-cache-owner=root \
  38. --enable-mandirs=GNU \
  39. --with-sections="1 n l 8 3 0 2 5 4 9 6 7"
  40. make
  41. }
  42. check() {
  43. cd ${pkgname}-${pkgver}
  44. make check
  45. }
  46. package() {
  47. cd ${pkgname}-${pkgver}
  48. make DESTDIR=${pkgdir} install
  49. # part of groff pkg
  50. rm -f ${pkgdir}/usr/bin/zsoelim
  51. # script from LFS to convert manpages, see
  52. # http://www.linuxfromscratch.org/lfs/view/6.4/chapter06/man-db.html
  53. install -D -m755 ${srcdir}/convert-mans ${pkgdir}/usr/bin/convert-mans
  54. # install man-db update timer
  55. install -D -m644 ${srcdir}/man-db.timer ${pkgdir}/usr/lib/systemd/system/man-db.timer
  56. install -D -m644 ${srcdir}/man-db.service ${pkgdir}/usr/lib/systemd/system/man-db.service
  57. install -d -m755 ${pkgdir}/usr/lib/systemd/system/multi-user.target.wants
  58. ln -s ../man-db.timer ${pkgdir}//usr/lib/systemd/system/multi-user.target.wants/man-db.timer
  59. }