PKGBUILD 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Maintainer:
  2. pkgname=groff
  3. pkgver=1.22.3
  4. pkgrel=7
  5. pkgdesc='GNU troff text-formatting system'
  6. arch=('x86_64' 'ppc64le')
  7. url='https://www.gnu.org/software/groff/groff.html'
  8. license=('GPL')
  9. groups=('base-devel')
  10. depends=('perl' 'gcc-libs')
  11. makedepends=('netpbm' 'psutils' 'libxaw')
  12. optdepends=('netpbm: for use together with man -H command interaction in browsers'
  13. 'psutils: for use together with man -H command interaction in browsers'
  14. 'libxaw: for gxditview')
  15. options=('!docs' '!emptydirs' '!makeflags')
  16. validpgpkeys=('58E0C111E39F5408C5D3EC76C1A60EACE707FDA5') # Werner Lemberg <wl@gnu.org>
  17. source=("https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.sig}
  18. 'site.tmac')
  19. sha256sums=('3a48a9d6c97750bfbd535feeb5be0111db6406ddb7bb79fc680809cda6d828a5'
  20. 'SKIP'
  21. 'af59ecde597ce9f8189368a7739279a5f8a391139fe048ef6b4e493ed46e5f5f')
  22. build() {
  23. cd $srcdir/$pkgname-$pkgver
  24. ./configure \
  25. --prefix=/usr \
  26. --with-x \
  27. --with-appresdir=/usr/share/X11/app-defaults
  28. make
  29. }
  30. check() {
  31. cd $srcdir/$pkgname-$pkgver
  32. make check
  33. }
  34. package() {
  35. cd $srcdir/$pkgname-$pkgver
  36. make DESTDIR=$pkgdir install
  37. # add compatibility symlinks
  38. ln -s eqn $pkgdir/usr/bin/geqn
  39. ln -s tbl $pkgdir/usr/bin/gtbl
  40. ln -s soelim $pkgdir/usr/bin/zsoelim
  41. # FS33760 - TERMCAP variables not followed
  42. # TODO: everyone is doing this - find out why upstream does not...
  43. cat $srcdir/site.tmac >> \
  44. $pkgdir/usr/share/groff/site-tmac/man.local
  45. cat $srcdir/site.tmac >> \
  46. $pkgdir/usr/share/groff/site-tmac/mdoc.local
  47. }