[arch-commits] Commit in pcre/repos (4 files)

Allan McRae allan at archlinux.org
Tue Dec 13 00:29:04 UTC 2011


    Date: Monday, December 12, 2011 @ 19:29:03
  Author: allan
Revision: 144981

archrelease: copy trunk to testing-i686, testing-x86_64

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

-------------------------+
 testing-i686/PKGBUILD   |   43 +++++++++++++++++++++++++++++++++++++++++++
 testing-x86_64/PKGBUILD |   43 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 86 insertions(+)

Copied: pcre/repos/testing-i686/PKGBUILD (from rev 144980, pcre/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2011-12-13 00:29:03 UTC (rev 144981)
@@ -0,0 +1,43 @@
+# $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.21
+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{,.sig})
+md5sums=('0a7b592bea64b7aa7f4011fc7171a730'
+         '4768871445dff956e620a9e902b4db55')
+
+build() {
+  cd "${srcdir}"/${pkgname}-${pkgver}
+  
+  [ "${CARCH}" = "x86_64" ] && export CFLAGS="${CFLAGS} -fPIC"
+  ./configure --prefix=/usr --enable-jit \
+    --enable-utf8 --enable-unicode-properties
+  make
+}
+
+check() {
+  cd "${srcdir}"/${pkgname}-${pkgver}
+  make check
+}
+
+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
+}

Copied: pcre/repos/testing-x86_64/PKGBUILD (from rev 144980, pcre/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2011-12-13 00:29:03 UTC (rev 144981)
@@ -0,0 +1,43 @@
+# $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.21
+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{,.sig})
+md5sums=('0a7b592bea64b7aa7f4011fc7171a730'
+         '4768871445dff956e620a9e902b4db55')
+
+build() {
+  cd "${srcdir}"/${pkgname}-${pkgver}
+  
+  [ "${CARCH}" = "x86_64" ] && export CFLAGS="${CFLAGS} -fPIC"
+  ./configure --prefix=/usr --enable-jit \
+    --enable-utf8 --enable-unicode-properties
+  make
+}
+
+check() {
+  cd "${srcdir}"/${pkgname}-${pkgver}
+  make check
+}
+
+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