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

# source: post BLFS 9.1 2020-05-19
TARBALL=pcre2-$PKGVER.tar.bz2
MD5SUM=a0674e2cc5941d738c1afddf43fb8745
SRC_URL=https://ftp.pcre.org/pub/pcre/$TARBALL
BUNDLE=

SLACKREQ=
SLACKDESC="libpcre2: libpcre2 $PKGVER (PCRE2 library)
libpcre2:
libpcre2: The PCRE2 package contains a new generation of the Perl Compatible
libpcre2: Regular Expression libraries. These are useful for implementing
libpcre2: regular expression pattern matching using the same syntax and
libpcre2: semantics as Perl 5.  Any new features will be added to PCRE2, and
libpcre2: not to the PCRE 8.x series.
libpcre2:
libpcre2:
libpcre2:
libpcre2:
libpcre2:
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/pcre*
	CONFFLAGS="$CONFFLAGS \
		--docdir=/usr/share/doc/pcre2-$PKGVER \
        --enable-unicode                  \
        --enable-jit                      \
        --enable-pcre2-16                 \
        --enable-pcre2-32                 \
        --enable-pcre2grep-libz           \
        --enable-pcre2grep-libbz2         \
        --enable-pcre2test-libreadline    \
        --disable-static" &&
	pkg_build_autoconf &&
	pkg_build_slackdesc &&

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


