diff options
Diffstat (limited to 'community/docbook2x')
-rw-r--r-- | community/docbook2x/PKGBUILD | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/community/docbook2x/PKGBUILD b/community/docbook2x/PKGBUILD index f79fa2062..ac94e850a 100644 --- a/community/docbook2x/PKGBUILD +++ b/community/docbook2x/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 67604 2012-03-13 14:04:01Z spupykin $ +# $Id: PKGBUILD 101319 2013-11-22 17:09:45Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com> @@ -17,18 +17,24 @@ source=(http://downloads.sourceforge.net/$pkgname/docbook2X-$pkgver.tar.gz md5sums=('b9b76a6af198c4f44574cfd17a322f01' '826fae88a435d9278c4f9614991d55a1') -build() { +prepare() { cd $srcdir/docbook2X-$pkgver patch -p1 <$srcdir/datadir.diff + sed -e 's/AM_CONFIG_HEADER(/AC_CONFIG_HEADERS(/' -i configure.ac +} - autoreconf +build() { + cd $srcdir/docbook2X-$pkgver + autoreconf -i -f ./configure \ --prefix=/usr \ --mandir=/usr/share/man \ --program-transform-name 's,2x-,2,' \ - make +} +package() { + cd $srcdir/docbook2X-$pkgver make DESTDIR=$pkgdir install install -D -m0644 COPYING $pkgdir/usr/share/licenses/$pkgname/license sed -i 's|http://docbook2x.sf.net/latest|/usr/share/docbook2X|g' \ |