diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2010-09-05 05:51:57 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2010-09-05 05:51:57 (GMT) |
commit | 10ab90f1cbd18d1b78f387af7212115758722ef9 (patch) | |
tree | d17421b14647600086132bd5b11333700456ec8e /abs/core-testing/pcre/PKGBUILD | |
parent | 56c6185c2a735551f2f1d6941d5b14d04adef40e (diff) | |
download | linhes_pkgbuild-10ab90f1cbd18d1b78f387af7212115758722ef9.zip linhes_pkgbuild-10ab90f1cbd18d1b78f387af7212115758722ef9.tar.gz linhes_pkgbuild-10ab90f1cbd18d1b78f387af7212115758722ef9.tar.bz2 |
pcre:Bumped/Updated for LinHES 7.
Diffstat (limited to 'abs/core-testing/pcre/PKGBUILD')
-rw-r--r-- | abs/core-testing/pcre/PKGBUILD | 38 |
1 files changed, 22 insertions, 16 deletions
diff --git a/abs/core-testing/pcre/PKGBUILD b/abs/core-testing/pcre/PKGBUILD index b019bed..d31e23c 100644 --- a/abs/core-testing/pcre/PKGBUILD +++ b/abs/core-testing/pcre/PKGBUILD @@ -1,30 +1,36 @@ -# $Id: PKGBUILD 11888 2008-09-06 03:23:26Z eric $ -# Maintainer: Eric Belanger <eric@archlinux.org> +# $Id: PKGBUILD 84661 2010-07-03 04:01:39Z allan $ +# Maintainer: Allan McRae <allan@archlinux.org> +# Contributor: Eric Belanger <eric@archlinux.org> # Contributor: John Proctor <jproctor@prium.net> pkgname=pcre -pkgver=7.8 +pkgver=8.10 pkgrel=1 pkgdesc="A library that implements Perl 5-style regular expressions" arch=('i686' 'x86_64') -url="http://pcre.sourceforge.net" +url="http://www.pcre.org/" license=('BSD') -groups=('base') depends=('gcc-libs') -options=('!libtool' '!makeflags') +options=('!libtool') source=(ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${pkgname}-${pkgver}.tar.bz2) -md5sums=('141132d6af14dccc7b08fa797e4fd441') -sha1sums=('552909f9d18e1954eec639f926957a4cb2de1ec3') +md5sums=('780867a700e9d4e4b9cb47aa5453e4b2') +sha1sums=('8b345da0f835b2caabff071b0b5bab40564652be') build() { - cd ${srcdir}/${pkgname}-${pkgver} + cd "${srcdir}"/${pkgname}-${pkgver} [ "${CARCH}" = "x86_64" ] && export CFLAGS="${CFLAGS} -fPIC" - ./configure --prefix=/usr --enable-utf8 --enable-unicode-properties || return 1 - make || return 1 - make DESTDIR=${pkgdir} install || return 1 + ./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 - mkdir -p ${pkgdir}/lib - mv ${pkgdir}/usr/lib/libpcre.so.* ${pkgdir}/lib/ || return 1 - ln -sf ../../lib/libpcre.so.0 ${pkgdir}/usr/lib/libpcre.so || return 1 - install -D -m644 LICENCE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE || return 1 + 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 } |