diff options
author | Bruno Cichon <ebrasca@librepanther.com> | 2018-10-02 00:52:16 +0200 |
---|---|---|
committer | Bruno Cichon <ebrasca@librepanther.com> | 2018-10-02 00:52:16 +0200 |
commit | 7201d68c2089f4e83126bcfc72e0658ce920a084 (patch) | |
tree | 606328683e0a12304967f4166fd6bd544564d450 /libre-testing/groff | |
parent | 7b0e23aa952d001065f3f2432e4a6c57ac581b5c (diff) | |
download | abslibre-7201d68c2089f4e83126bcfc72e0658ce920a084.tar.gz abslibre-7201d68c2089f4e83126bcfc72e0658ce920a084.tar.bz2 abslibre-7201d68c2089f4e83126bcfc72e0658ce920a084.zip |
Add some base-devel packages for ppc64le
Diffstat (limited to 'libre-testing/groff')
-rw-r--r-- | libre-testing/groff/PKGBUILD | 54 | ||||
-rw-r--r-- | libre-testing/groff/site.tmac | 16 |
2 files changed, 70 insertions, 0 deletions
diff --git a/libre-testing/groff/PKGBUILD b/libre-testing/groff/PKGBUILD new file mode 100644 index 000000000..70d5baa5a --- /dev/null +++ b/libre-testing/groff/PKGBUILD @@ -0,0 +1,54 @@ +# Maintainer: + +pkgname=groff +pkgver=1.22.3 +pkgrel=7 +pkgdesc='GNU troff text-formatting system' +arch=('x86_64' 'ppc64le') +url='https://www.gnu.org/software/groff/groff.html' +license=('GPL') +groups=('base-devel') +depends=('perl' 'gcc-libs') +makedepends=('netpbm' 'psutils' 'libxaw') +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') +options=('!docs' '!emptydirs' '!makeflags') +validpgpkeys=('58E0C111E39F5408C5D3EC76C1A60EACE707FDA5') # Werner Lemberg <wl@gnu.org> +source=("https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.sig} + 'site.tmac') +sha256sums=('3a48a9d6c97750bfbd535feeb5be0111db6406ddb7bb79fc680809cda6d828a5' + 'SKIP' + 'af59ecde597ce9f8189368a7739279a5f8a391139fe048ef6b4e493ed46e5f5f') + +build() { + cd $srcdir/$pkgname-$pkgver + + ./configure \ + --prefix=/usr \ + --with-x \ + --with-appresdir=/usr/share/X11/app-defaults + make +} + +check() { + cd $srcdir/$pkgname-$pkgver + make check +} + +package() { + cd $srcdir/$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 +} diff --git a/libre-testing/groff/site.tmac b/libre-testing/groff/site.tmac new file mode 100644 index 000000000..8ef1040ca --- /dev/null +++ b/libre-testing/groff/site.tmac @@ -0,0 +1,16 @@ +. +.if n \{\ +. \" Character translations for non-keyboard +. \" characters - to make them searchable +. if '\*[.T]'utf8' \{\ +. char \- \N'45' +. char - \N'45' +. char ' \N'39' +. char \' \N'39' +. \} +. +. \" Shut off SGR by default (groff colors) +. \" Require GROFF_SGR envvar defined to turn it on +. if '\V[GROFF_SGR]'' \ +. output x X tty: sgr 0 +.\} |