updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / man2texi / PKGBUILD
blob266d638cfe5163d2096333967504a61c0ecfebc7
1 # Maintainer:  Stefan Husmann <stefan-husmann@t-online.de>
2 # Contributor: tardo <tardo@nagi-fanboi.net>
3 # Contributor: Leslie P. Polzer <polzer@gnu.org>
5 pkgname=man2texi
6 pkgver=0.01
7 pkgrel=4
8 pkgdesc="Converts well-structured man pages to Texinfo format"
9 arch=('i686' 'x86_64')
10 url=("http://www.math.utah.edu/pub/man2texi/")
11 depends=('gawk' 'bash')
12 license=('GPL')
13 source=(http://www.math.utah.edu/pub/man2texi/$pkgname-$pkgver.tar.bz2 noiso8859.diff)
14 md5sums=('96489411b5f1aff644abc12ef50510e7'
15          '2b8d5d15a4ff735808d63b19e12ac3b1')
17 build() {
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
25 package() {
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