app=oniguruma
version=6.9.5
build=1sml
homepage="https://github.com/kkos/oniguruma"
download="https://github.com/kkos/oniguruma/archive/refs/tags/v$version.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
"
