blob: fac0af86feaefc22bef22a0bfa6a01c160d14f78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# $Id: PKGBUILD 71613 2010-03-07 21:58:14Z paul $
# Maintainer: judd <jvinet@zeroflux.org>
pkgname=groff
pkgver=1.20.1
pkgrel=4
pkgdesc="GNU troff text-formatting system"
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/groff/groff.html"
license=('GPL')
depends=('perl' 'gcc-libs' 'texinfo')
makedepends=('netpbm' 'psutils' 'ghostscript')
optdepends=('netpbm: for use together with man -H command interaction in browsers'
'psutils: for use together with man -H command interaction in browsers')
source=(ftp://ftp.gnu.org/gnu/groff/groff-$pkgver.tar.gz
site.tmac)
install=groff.install
md5sums=('48fa768dd6fdeb7968041dd5ae8e2b02'
'a1fedafd7863b37968d32ad9ae1d8c13')
build() {
cd $srcdir/$pkgname-$pkgver
./configure --prefix=/usr --without-x
mkdir -p $pkgdir/usr
make -j1 || return 1
}
package() {
cd $srcdir/$pkgname-$pkgver
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
}
|