Date: Tuesday, August 16, 2011 @ 18:23:31 Author: allan Revision: 135641
archrelease: copy trunk to testing-x86_64 Added: pcre/repos/testing-x86_64/ pcre/repos/testing-x86_64/PKGBUILD (from rev 135640, pcre/trunk/PKGBUILD) ----------+ PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) Copied: pcre/repos/testing-x86_64/PKGBUILD (from rev 135640, pcre/trunk/PKGBUILD) =================================================================== --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2011-08-16 22:23:31 UTC (rev 135641) @@ -0,0 +1,36 @@ +# $Id$ +# Maintainer: Allan McRae <al...@archlinux.org> +# Contributor: Eric Belanger <e...@archlinux.org> +# Contributor: John Proctor <jproc...@prium.net> + +pkgname=pcre +pkgver=8.13 +pkgrel=1 +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=('5e595edbcded141813fa1a10dbce05cb') + + +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 +}