1 # Contributor: Elena ``of Valhalla'' Grandi <elena.valhalla@gmail.com>
5 pkgdesc="Batch converter from DocBook SGML to nroff/troff man macros."
7 url="http://www.oasis-open.org/docbook/tools/dtm/"
9 depends=('sh' 'opensp')
18 source=(http://www.oasis-open.org/docbook/tools/dtm/$pkgname.tar.gz
22 md5sums=('b28ddaaa8eb4b775100c67fd1205240a'
23 '90f6999527b3050b4a655dd26b7f3359'
24 '03b219c26339d88e8042f92ef1a4a245')
29 patch -p 1 < "$srcdir/regexp.patch"
31 sed -i 's/^ROOT =.*//' Makefile \
33 Instant/tptregexp/Makefile \
37 make ROOT="$pkgdir/usr/"
39 sed -i 's/^ROOT=.*/ROOT=\/usr/' cmd/docbook-to-man \
40 cmd/docbook-to-man.sh \
47 install -d -m755 "$pkgdir/usr/bin"
48 install -d -m755 "$pkgdir/usr/lib"
49 make ROOT="$pkgdir/usr/" install
51 install -D -m644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"