APP=pcre
VERSION=8.44
BUILD=1sml
HOMEPAGE='https://www.pcre.org/'
DOWNLOAD='https://ftp.pcre.org/pub/pcre/pcre-8.44.tar.gz'
DESC="Perl-compatible regular expression library"
REQUIRES="zlib bzip2"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --disable-static \
    --enable-pcre16 \
    --enable-pcre32 \
    --enable-pcregrep-libbz2 \
    --enable-pcretest-libreadline \
    --enable-unicode-properties \
    --enable-pcregrep-libz 

  make
  make install DESTDIR=$PKG

  cp LICENCE $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
f26d850aab5228799e58ac8c2306fb313889332c39e29b118ef1de57677c5c90f970d68d3f475cabc64f8b982a77f04eca990ff1057f3ccf5e19bd137997c4ac  pcre-8.44.tar.bz2
"
