PKGBUILDs/core/groff/PKGBUILD
2009-10-09 21:17:35 -05:00

40 lines
1.1 KiB
Bash

# $Id: PKGBUILD 53876 2009-10-03 18:11:12Z paul $
# Maintainer: judd <jvinet@zeroflux.org>
pkgname=groff
pkgver=1.20.1
pkgrel=3
pkgdesc="GNU troff text-formatting system"
arch=(i686 x86_64)
url="http://www.gnu.org/software/groff/groff.html"
license=('GPL')
groups=('base')
depends=('perl' 'gcc-libs' 'texinfo')
makedepends=('netpbm' 'psutils' 'ghostscript')
source=(ftp://ftp.gnu.org/gnu/groff/groff-$pkgver.tar.gz
site.tmac)
install=groff.install
md5sums=('48fa768dd6fdeb7968041dd5ae8e2b02'
'7b47109b2dd1797445c912574d8934a1')
build() {
cd $srcdir/$pkgname-$pkgver
./configure --prefix=/usr --without-x
mkdir -p $pkgdir/usr
make -j1 || return 1
make prefix=$pkgdir/usr install
cd $pkgdir/usr/bin
# needed for xman
ln -s eqn geqn
ln -s tbl gtbl
ln -s soelim zsoelim
rm -rf $pkgdir/usr/lib
# Fix some issues when encoding to utf8 man pages
# The output chars don't match keyboard chars...
cat $srcdir/site.tmac >> \
$pkgdir/usr/share/groff/site-tmac/man.local
cat $srcdir/site.tmac >> \
$pkgdir/usr/share/groff/site-tmac/mdoc.local
rm -f $pkgdir/usr/share/info/dir
}