# $Id: PKGBUILD 204393 2014-01-19 00:33:32Z allan $ # Maintainer: Allan McRae # Contributor: Eric Belanger # Contributor: John Proctor pkgname=pcre pkgver=8.34 pkgrel=2 pkgdesc="A library that implements Perl 5-style regular expressions" arch=('i686' 'x86_64') url="http://www.pcre.org/" license=('BSD') depends=('readline' 'zlib' 'bzip2') source=(ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${pkgname}-${pkgver}.tar.bz2{,.sig}) md5sums=('5439e321351bddd5533551bbce128d07' 'SKIP') build() { cd "${srcdir}"/${pkgname}-${pkgver} ./configure --prefix=/usr \ --enable-unicode-properties \ --enable-pcre16 \ --enable-pcre32 \ --enable-jit \ --enable-pcregrep-libz \ --enable-pcregrep-libbz2 \ --enable-pcretest-libreadline make } check() { cd "${srcdir}"/${pkgname}-${pkgver} make -j1 check } package() { cd "${srcdir}"/${pkgname}-${pkgver} make DESTDIR="${pkgdir}" install install -Dm644 LICENCE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE }