# # Core Packages for Chakra, part of chakra-project.org # # maintainer (i686): Phil Miller # maintainer (x86_64): Manuel Tortosa pkgname=pcre pkgver=8.11 pkgrel=2 pkgdesc="A library that implements Perl 5-style regular expressions" arch=('i686' 'x86_64') url="http://www.pcre.org/" license=('BSD') depends=('gcc-libs') options=('!libtool') source=(ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${pkgname}-${pkgver}.tar.bz2) md5sums=('ef907b8792ec7f90f0dcd773848f0b3b') sha1sums=('e9a9c2b2dfcf8606ad5c1fb5591801fa2cb771f5') build() { cd "${srcdir}"/${pkgname}-${pkgver} [ "${CARCH}" = "x86_64" ] && export CFLAGS="${CFLAGS} -fPIC" ./configure --prefix=/usr --enable-utf8 --enable-unicode-properties make } package() { cd "${srcdir}"/${pkgname}-${pkgver} make DESTDIR="${pkgdir}" install # grep uses pcre, so we need the libs in /lib install -dm755 "${pkgdir}"/lib mv "${pkgdir}"/usr/lib/libpcre.so.* "${pkgdir}"/lib/ ln -sf ../../lib/libpcre.so.0 "${pkgdir}"/usr/lib/libpcre.so install -Dm644 LICENCE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE }