77 lines
2.4 KiB
Bash
77 lines
2.4 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://git.disroot.org/joborun-pkg/jobcore/src/branch/main/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=groff
|
|
pkgver=1.23.0
|
|
pkgrel=06
|
|
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
|
|
|
|
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-3.0-or-later')
|
|
|
|
validpgpkeys=('2D0C08D2B0AD0D3D8626670272D23FBAC99D4E75') # Bertrand Garrigues <bertrand.garrigues@laposte.net>
|
|
|
|
sha256sums=(6b9757f592b7518b4902eb6af7e54570bdccba37a871fddb2d30ae3863511c13 # groff-1.23.0.tar.gz
|
|
7ec23a8550fba8d942da06b1f84a090d80538ac062e8c73de6a4ad7a4f69e09f # groff-1.23.0.tar.gz.sig
|
|
489bb32bbd1c7bced33bf187611219527914ae46ce05238fe80dc11c4b1bb909 # display-utc-times.patch
|
|
fa6ad35f27caaf285a26b1ee87607643552e4c02a641b58a6034b0d153eb920f) # site.tmac
|
|
|
|
## 66ead0890bedf35b654a9f086bc42f57484770adc38aba5efdc3dd8a42569cf1 groff-1.23.0-06-x86_64.pkg.tar.lz
|