aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-12-20 12:16:43 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-12-20 12:16:43 +0000
commitd951886a27159b0d0583c575e22e2233de078dfa (patch)
treea8a4ee9f86e7d70e203d39be9dbbfa00360ecbd0
parent30978419587d8f13e36c2aa6b79486fa181ae5ce (diff)
downloadaports-d951886a27159b0d0583c575e22e2233de078dfa.tar.bz2
aports-d951886a27159b0d0583c575e22e2233de078dfa.tar.xz
main/pcre: build libs 16bit and 32bit characters. split out tools
-rw-r--r--main/pcre/APKBUILD26
1 files changed, 24 insertions, 2 deletions
diff --git a/main/pcre/APKBUILD b/main/pcre/APKBUILD
index be8b390977..e78c40b27c 100644
--- a/main/pcre/APKBUILD
+++ b/main/pcre/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pcre
pkgver=8.32
-pkgrel=0
+pkgrel=1
pkgdesc="Perl-compatible regular expression library"
url="http://pcre.sourceforge.net"
arch="all"
@@ -9,7 +9,8 @@ license="BSD"
depends=
makedepends=""
source="ftp://ftp.csx.cam.ac.uk/pub/software/programming/$pkgname/$pkgname-$pkgver.tar.bz2"
-subpackages="$pkgname-dev $pkgname-doc libpcrecpp"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-tools
+ libpcrecpp libpcre16 libpcre32"
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
@@ -27,6 +28,9 @@ build() {
--enable-jit \
--enable-utf8 \
--enable-unicode-properties \
+ --enable-pcre8 \
+ --enable-pcre16 \
+ --enable-pcre32 \
--with-match-limit-recursion=8192 \
--htmldir=/usr/share/doc/$pkgname-$pkgver/html \
--docdir=/usr/share/doc/$pkgname-$pkgver
@@ -46,4 +50,22 @@ libpcrecpp() {
mv "$pkgdir"/usr/lib/libpcrecpp.so* "$subpkgdir"/usr/lib/
}
+libpcre16() {
+ pkgdesc="PCRE with 16 bit character support"
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/libpcre16.so* "$subpkgdir"/usr/lib/
+}
+
+libpcre32() {
+ pkgdesc="PCRE with 16 bit character support"
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/libpcre32.so* "$subpkgdir"/usr/lib/
+}
+
+tools() {
+ pkgdesc="Auxiliary utilities for PCRE"
+ mkdir -p "$subpkgdir"/usr/
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
+}
+
md5sums="62f02a76bb57a40bc66681760ed511d5 pcre-8.32.tar.bz2"