### this file is sourced not run
PKGVER=8.38
PKGBUILD=1
PKGARCH=x86_64

# source: post BLFS 7.8 2015-12-29
TARBALL=pcre-$PKGVER.tar.bz2
MD5SUM=00aabbfe56d5a48b270f999b508c5ad2
SRC_URL=ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/$TARBALL
BUNDLE=

SLACKREQ=
SLACKDESC="libpcre: libpcre $PKGVER (PCRE library)  
libpcre:  
libpcre: The PCRE package contains Perl Compatible Regular Expression 
libpcre: libraries. These are useful for implementing regular expression 
libpcre: pattern matching using the same syntax and semantics as Perl 5.  
libpcre: 
libpcre: 
libpcre: 
libpcre: 
libpcre: 
libpcre: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/pcre*
	./configure --prefix=/usr --libdir=/usr/lib64 \
            --docdir=/usr/share/doc/pcre-$PKGVER \
            --enable-unicode-properties       \
            --enable-pcre16                   \
            --enable-pcre32                   \
            --enable-pcregrep-libz            \
            --enable-pcregrep-libbz2          \
            --enable-pcretest-libreadline     \
            --disable-static                 &&
	make $MAKEFLAGS &&
	make $MAKEINSTALLFLAGS install &&
	pkg_build_slackdesc &&

	# multilib
	mv -v /usr/bin/pcre-config{,-64} &&
	ln -sfv multiarch_wrapper /usr/bin/pcre-config	
}


