[arch-commits] Commit in pcre/repos (testing-i686 testing-i686/PKGBUILD)

Allan McRae allan at archlinux.org
Tue Aug 16 22:22:56 UTC 2011


    Date: Tuesday, August 16, 2011 @ 18:22:55
  Author: allan
Revision: 135640

archrelease: copy trunk to testing-i686

Added:
  pcre/repos/testing-i686/
  pcre/repos/testing-i686/PKGBUILD
    (from rev 135639, pcre/trunk/PKGBUILD)

----------+
 PKGBUILD |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

Copied: pcre/repos/testing-i686/PKGBUILD (from rev 135639, pcre/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2011-08-16 22:22:55 UTC (rev 135640)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Allan McRae <allan at archlinux.org>
+# Contributor: Eric Belanger <eric at archlinux.org>
+# Contributor: John Proctor <jproctor at 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
+}




More information about the arch-commits mailing list