1 # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
2 # Contributor: tardo <tardo@nagi-fanboi.net>
3 # Contributor: Leslie P. Polzer <polzer@gnu.org>
8 pkgdesc="Converts well-structured man pages to Texinfo format"
10 url=("http://www.math.utah.edu/pub/man2texi/")
11 depends=('gawk' 'bash')
13 source=(http://www.math.utah.edu/pub/man2texi/$pkgname-$pkgver.tar.bz2 noiso8859.diff)
14 md5sums=('96489411b5f1aff644abc12ef50510e7'
15 '2b8d5d15a4ff735808d63b19e12ac3b1')
18 cd $srcdir/$pkgname-$pkgver
20 ./configure --prefix=/usr --mandir=/usr/share/man/man1
22 make SHRLIBDIR=/usr/share/$pkgname
23 patch $pkgname.sh $srcdir/noiso8859.diff
26 cd $srcdir/$pkgname-$pkgver
27 install -Dm755 $pkgname.sh $pkgdir/usr/bin/$pkgname
28 install -Dm644 $pkgname.man $pkgdir/usr/share/man/man1/$pkgname.1
29 install -Dm644 $pkgname.awk \
30 $pkgdir/usr/share/$pkgname/$pkgname.awk
31 sed -i 's+\/usr\/local\/bin+\/bin+' \
32 $pkgdir/usr/share/$pkgname/$pkgname.awk
33 sed -i 's+SHRLIBDIR=.+SHRLIBDIR=/usr/share/man2texi+' \
34 $pkgdir/usr/bin/$pkgname