diff options
Diffstat (limited to 'community/tre')
-rw-r--r-- | community/tre/PKGBUILD | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/community/tre/PKGBUILD b/community/tre/PKGBUILD index d5438c092..101515357 100644 --- a/community/tre/PKGBUILD +++ b/community/tre/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 100003 2013-10-31 02:56:45Z allan $ -# Maintainer: Stefan Husmann <stefan-husmann@t-online.de +# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de> +# Contributor: Stefan Husmann <stefan-husmann@t-online.de # Contributor: Igor Galic<i.galic@gmail.com> pkgname=tre pkgver=0.8.0 -pkgrel=2 +pkgrel=3 arch=('i686' 'x86_64') pkgdesc="POSIX compliant regexp matching library. Includes agrep for aproximate grepping." url="http://laurikari.net/tre" @@ -14,19 +14,22 @@ source=("http://laurikari.net/tre/$pkgname-$pkgver.tar.bz2") md5sums=('b4d3232593dadf6746f4727bdda20b41') build() { - cd ${srcdir}/$pkgname-$pkgver - ./configure --prefix=/usr --enable-static - make + cd "$srcdir/$pkgname-$pkgver" + ./configure --prefix=/usr --enable-static + make } -package(){ - cd ${srcdir}/$pkgname-$pkgver - make DESTDIR=$pkgdir install - install -Dm644 ${srcdir}/$pkgname-$pkgver/LICENSE \ - ${pkgdir}/usr/share/licenses/$pkgname/LICENSE - install -d ${pkgdir}/usr/share/doc/$pkgname - cd doc - for _i in default.css tre-api.html tre-syntax.html; do - install -Dm644 ${_i} ${pkgdir}/usr/share/doc/$pkgname/${_i} - done +package() { + cd "$srcdir/$pkgname-$pkgver" + + make DESTDIR="$pkgdir" install + + install -Dm644 "$srcdir/$pkgname-$pkgver/LICENSE" \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -d "$pkgdir/usr/share/doc/$pkgname" + + cd doc + for f in default.css tre-api.html tre-syntax.html; do + install -Dm644 "$f" "$pkgdir/usr/share/doc/$pkgname/$f" + done } |