APP=oniguruma
VERSION=6.9.5
BUILD=1sml
HOMEPAGE='https://github.com/kkos/oniguruma'
DOWNLOAD='https://github.com/kkos/oniguruma/archive/refs/tags/v6.9.5.tar.gz'
DESC="Regular expressions library"
REQUIRES="musl"

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

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

  ./configure \
    --prefix="" \
    --enable-posix-api \
    --disable-static

  make
  make install DESTDIR=$PKG 

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
d901fdbb1ecf4af2a659d246678242e415298b04d85d1e662f592b4ee85b3157edeb33cd2f20db6841afba37b7503f9b943431ab915df51a17ca726ee4e07601  oniguruma-6.9.5.tar.lz
"
