PKGBUILD 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # Maintainer (Arch): Andreas Radke <andyrtr@archlinux.org>
  2. # Contributor (Arch): Sergej Pupykin <sergej@aur.archlinux.org>
  3. # Maintainer: André Silva <emulatorman@hyperbola.info>
  4. # Contributor: Márcio Silva <coadde@hyperbola.info>
  5. pkgname=man-db
  6. pkgver=2.9.3
  7. pkgrel=3
  8. pkgdesc="A utility for reading man pages"
  9. arch=('i686' 'x86_64')
  10. url="https://www.nongnu.org/man-db/"
  11. license=('GPL-3')
  12. groups=('base')
  13. depends=('zlib' 'groff' 'libpipeline' 'less' 'libseccomp')
  14. makedepends=('quilt')
  15. optdepends=('gzip' 'cron')
  16. backup=('etc/man_db.conf' 'etc/cron.daily/mandb')
  17. conflicts=('man')
  18. provides=('man')
  19. replaces=('man')
  20. install=${pkgname}.install
  21. source=(https://savannah.nongnu.org/download/man-db/$pkgname-$pkgver.tar.xz{,.asc}
  22. snapdir.diff
  23. convert-mans
  24. mandb.cron.daily
  25. COPYING
  26. licensing-info.txt)
  27. validpgpkeys=('AC0A4FF12611B6FCCF01C111393587D97D86500B') # Colin Watson <cjwatson@debian.org>
  28. sha512sums=('ca1c1214753483f6e22efe69a9df9852e0de01a9ad3b9950dcbbc9f38e6060100b98a84333256f8c734002e66e2fd6256bc017a31bd9acfc42002dca2c0f879b'
  29. 'SKIP'
  30. 'f24a8152c82c3b99dab2c34654382512f226bb6b0e5e3b1376d577019a4cca0f4e5a9ac92c62ed7ea5cf0ed3ad94509d34f455d845bc5fb026ef908da82cd5fe'
  31. '0b159285da20008f0fc0afb21f1eaebd39e8df5b0594880aa0e8a913b656608b8d16bb8d279d9e62d7aae52f62cb9b2fc49e237c6711f4a5170972b38d345535'
  32. 'c1d463a99d5671939faaa15ce7cd27d66f54660ee540fddf44974c0004664e5140273762b52ee7a86fcf36132237b31f9a7eaaf42ddf095f98e1ff2500114c68'
  33. 'd361e5e8201481c6346ee6a886592c51265112be550d5224f1a7a6e116255c2f1ab8788df579d9b8372ed7bfd19bac4b6e70e00b472642966ab5b319b99a2686'
  34. '0bc3f5811b62dfdff5fa5c3b059248b63ceed3df20b8aead72356c5d2f2cfbdec912cc3e39a067c8b26bc7e8f3bc867b545a4bc3a91b965a06598e0ffb4a80fd')
  35. prepare() {
  36. cd ${pkgname}-${pkgver}
  37. # fix default Add MANDB_MAP entry mapping /snap/man to /var/cache/man/snap
  38. # Hyperbola needs /var/lib/snapd/snap/man to /var/cache/man/snap
  39. patch -Np0 -i ../snapdir.diff
  40. }
  41. build() {
  42. cd ${pkgname}-${pkgver}
  43. ./configure --prefix=/usr \
  44. --sysconfdir=/etc \
  45. --with-db=gdbm \
  46. --disable-setuid \
  47. --enable-cache-owner=root \
  48. --enable-mandirs=GNU \
  49. --without-systemdsystemunitdir \
  50. --without-systemdtmpfilesdir \
  51. --with-sections="1 n l 8 3 0 2 5 4 9 6 7"
  52. make
  53. }
  54. check() {
  55. cd ${pkgname}-${pkgver}
  56. make check
  57. }
  58. package() {
  59. cd ${pkgname}-${pkgver}
  60. make DESTDIR=${pkgdir} install
  61. # part of groff pkg
  62. rm -f ${pkgdir}/usr/bin/zsoelim
  63. # script from LFS to convert manpages, see
  64. # http://www.linuxfromscratch.org/lfs/view/6.4/chapter06/man-db.html
  65. install -D -m755 ${srcdir}/convert-mans ${pkgdir}/usr/bin/convert-mans
  66. # install cron job
  67. install -D -m744 ${srcdir}/mandb.cron.daily ${pkgdir}/etc/cron.daily/mandb
  68. # install license and licensing info
  69. for i in COPYING licensing-info.txt; do
  70. install -Dm644 ${srcdir}/${i} ${pkgdir}/usr/share/licenses/${pkgname}/${i}
  71. done
  72. }