CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
openssl: adapted to 64b
[crossrootfs.git] / libpcre / Pkgfile
1 # Description: Perl Compatible Regular Expressions
2 # URL: http://www.pcre.org
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
5 # Depends on:
6
7 name=libpcre
8 version=8.37
9 release=5
10 source=(ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-$version.tar.bz2
11 01-seven-security-patches.patch \
12 $name-$version-CVE-2015-5073.patch \
13 $name-$version-CVE-2015-XXXX.patch)
14
15
16 build() {
17 cd pcre-$version
18
19 ./configure --build=$CHOST \
20 --host=$CTARGET \
21 --prefix=/usr \
22 --enable-utf8 \
23 --enable-unicode-properties \
24 --enable-jit
25
26 make
27 make DESTDIR=$PKG install
28
29 install -d $PKG/lib
30 mv $PKG/usr/lib/libpcre.so.* $PKG/lib
31 ln -sf ../../lib/$(readlink $PKG/usr/lib/libpcre.so) $PKG/usr/lib/libpcre.so
32
33 rm -r $PKG/usr/share/doc
34 rm $PKG/usr/share/man/man3/{pcre{16,32}*,pcre_utf{16,32}*}
35 }