updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / docbook-to-man / PKGBUILD
blob0f44c0b1ac52401b60b2703c4a86cfd77e02fd3f
1 # Contributor: Elena ``of Valhalla'' Grandi <elena.valhalla@gmail.com>
2 pkgname=docbook-to-man
3 pkgver=2.0.0
4 pkgrel=3
5 pkgdesc="Batch converter from DocBook SGML to nroff/troff man macros."
6 arch=('i686' 'x86_64')
7 url="http://www.oasis-open.org/docbook/tools/dtm/"
8 license=('MIT' 'GPL')
9 depends=('sh' 'opensp')
10 makedepends=()
11 optdepends=()
12 provides=()
13 conflicts=()
14 replaces=()
15 backup=()
16 options=()
17 install=
18 source=(http://www.oasis-open.org/docbook/tools/dtm/$pkgname.tar.gz 
19         LICENSE
20         regexp.patch)
21 noextract=()
22 md5sums=('b28ddaaa8eb4b775100c67fd1205240a'
23          '90f6999527b3050b4a655dd26b7f3359'
24          '03b219c26339d88e8042f92ef1a4a245')
26 build() {
27   cd "$srcdir/$pkgname"
29   patch -p 1 < "$srcdir/regexp.patch"
31   sed -i 's/^ROOT =.*//' Makefile \
32                          Instant/Makefile \
33                          Instant/tptregexp/Makefile \
34                          Transpec/Makefile \
35                          cmd/Makefile
37   make ROOT="$pkgdir/usr/"
39   sed -i 's/^ROOT=.*/ROOT=\/usr/' cmd/docbook-to-man \
40                                   cmd/docbook-to-man.sh \
41                                   cmd/docbook-to-man.sh
44 package() {
45   cd "$srcdir/$pkgname"
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"