diff options
Diffstat (limited to 'community/tre/PKGBUILD')
-rw-r--r-- | community/tre/PKGBUILD | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/community/tre/PKGBUILD b/community/tre/PKGBUILD index 52fb14708..b54263570 100644 --- a/community/tre/PKGBUILD +++ b/community/tre/PKGBUILD @@ -1,28 +1,33 @@ -# Contributor: Igor Galic<i.galic@gmail.com> +# $Id: PKGBUILD 56023 2011-09-29 06:45:36Z andrea $ # Maintainer: Stefan Husmann <stefan-husmann@t-online.de +# Contributor: Igor Galic<i.galic@gmail.com> + pkgname=tre pkgver=0.8.0 -pkgrel=1 +pkgrel=2 arch=('i686' 'x86_64') pkgdesc="POSIX compliant regexp matching library. Includes agrep for aproximate grepping." -url="http://laurikari.net/tre/index.html" +url="http://laurikari.net/tre" depends=('glibc') license=('custom:BSD') -source=(http://laurikari.net/tre/$pkgname-$pkgver.tar.bz2) +source=("http://laurikari.net/tre/$pkgname-$pkgver.tar.bz2") md5sums=('b4d3232593dadf6746f4727bdda20b41') options=('!libtool') build() { cd ${srcdir}/$pkgname-$pkgver - ./configure --prefix=/usr --enable-static || return 1 - make || return 1 - make DESTDIR=$pkgdir install || return 1 + ./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 || return 1 - install -d ${pkgdir}/usr/share/doc/$pkgname + ${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 + for _i in default.css tre-api.html tre-syntax.html; do install -Dm644 ${_i} ${pkgdir}/usr/share/doc/$pkgname/${_i} - done || return 1 + done } |