app=pcre
version=8.44
build=1sml
homepage="https://www.pcre.org/"
download="https://ftp.pcre.org/pub/pcre/pcre-$version.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
"
