6 pkgdesc='GNU troff text-formatting system'
8 url='https://www.gnu.org/software/groff/groff.html'
11 depends=('perl' 'gcc-libs')
12 makedepends=('netpbm' 'psutils' 'libxaw' 'perl-file-homedir')
13 optdepends=('netpbm: for use together with man -H command interaction in browsers'
14 'psutils: for use together with man -H command interaction in browsers'
15 'libxaw: for gxditview'
16 'perl-file-homedir: for use with glilypond')
17 options=('!docs' '!emptydirs' '!makeflags')
18 validpgpkeys=('2D0C08D2B0AD0D3D8626670272D23FBAC99D4E75') # Bertrand Garrigues <bertrand.garrigues@laposte.net>
19 source=("https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.sig}
20 display-utc-times.patch
22 sha256sums=('e78e7b4cb7dec310849004fa88847c44701e8d133b5d4c13057d876c1bad0293'
24 'b1e0bcbe1e0737aed1301066ff92a1e7fa0bd8b80a36321f92f519366a1acdb3'
25 'af59ecde597ce9f8189368a7739279a5f8a391139fe048ef6b4e493ed46e5f5f')
29 # always use UTC times for display - using localtime is problematic for reproducible builds
30 # fixes FS#69123 - patch taken from Debian
31 patch -Np1 -i ../display-utc-times.patch
40 --with-appresdir=/usr/share/X11/app-defaults
51 make DESTDIR="$pkgdir" install
53 # add compatibility symlinks
54 ln -s eqn "$pkgdir"/usr/bin/geqn
55 ln -s tbl "$pkgdir"/usr/bin/gtbl
56 ln -s soelim "$pkgdir"/usr/bin/zsoelim
58 # FS33760 - TERMCAP variables not followed
59 # TODO: everyone is doing this - find out why upstream does not...
60 cat "$srcdir"/site.tmac >> \
61 "$pkgdir"/usr/share/groff/site-tmac/man.local
62 cat "$srcdir"/site.tmac >> \
63 "$pkgdir"/usr/share/groff/site-tmac/mdoc.local