jobcore/groff/PKGBUILD

81 lines
2.5 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=groff
pkgver=1.22.4
pkgrel=08
pkgdesc='GNU troff text-formatting system'
url='https://www.gnu.org/software/groff/groff.html'
groups=( jobbot )
depends=('perl' 'gcc-libs')
makedepends=('netpbm' 'psutils' 'libxaw' 'perl-file-homedir')
optdepends=('netpbm: for use together with man -H command interaction in browsers'
'psutils: for use together with man -H command interaction in browsers'
'libxaw: for gxditview'
'perl-file-homedir: for use with glilypond')
options=('!docs' '!emptydirs' '!makeflags')
source=("https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.sig}
display-utc-times.patch
'site.tmac')
prepare() {
cd $pkgname-$pkgver
# always use UTC times for display - using localtime is problematic for reproducible builds
# fixes FS#69123 - patch taken from Debian
patch -Np1 -i ../display-utc-times.patch
}
build() {
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--with-x \
--with-appresdir=/usr/share/X11/app-defaults
make
}
check() {
cd $pkgname-$pkgver
make check
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
# add compatibility symlinks
ln -s eqn "$pkgdir"/usr/bin/geqn
ln -s tbl "$pkgdir"/usr/bin/gtbl
ln -s soelim "$pkgdir"/usr/bin/zsoelim
# # FS33760 - TERMCAP variables not followed
# # TODO: everyone is doing this - find out why upstream does not...
# cat "$srcdir"/site.tmac >> \
# "$pkgdir"/usr/share/groff/site-tmac/man.local
# cat "$srcdir"/site.tmac >> \
# "$pkgdir"/usr/share/groff/site-tmac/mdoc.local
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('GPL')
validpgpkeys=('2D0C08D2B0AD0D3D8626670272D23FBAC99D4E75') # Bertrand Garrigues <bertrand.garrigues@laposte.net>
sha256sums=(e78e7b4cb7dec310849004fa88847c44701e8d133b5d4c13057d876c1bad0293 # groff-1.22.4.tar.gz
ef546604f5a32814d975f642877dcc9ad8d236489938b39df04e4d42c51fac96 # groff-1.22.4.tar.gz.sig
b1e0bcbe1e0737aed1301066ff92a1e7fa0bd8b80a36321f92f519366a1acdb3 # display-utc-times.patch
af59ecde597ce9f8189368a7739279a5f8a391139fe048ef6b4e493ed46e5f5f) # site.tmac
## 0b6c55ba45d7826badc45c9b72bb550a788ea1fc431c3f15fbd141ced8f6754e groff-1.22.4-08-x86_64.pkg.tar.lz