pkgname=oniguruma
pkgver=6.9.10
pkgdesc="a regular expressions library"
arch=('x86_64')
homepage="https://github.com/kkos/oniguruma"
license=('BSD')
depends=()
sources=("${pkgname}-${pkgver}.tar.gz")
urls=("https://github.com/kkos/${pkgname}/releases/download/v${pkgver}/onig-${pkgver}.tar.gz")
md5sums=("46c48d072eafe29a0dd0489df7f6f212")

src_prepare() {
  tar -xf ${distdir}/${sources[0]} --strip-components=1
}

src_build() {
  ./configure --prefix=/usr \
    --enable-posix-api \
    --disable-crnl-as-line-terminator \
    --disable-static
  make
}

src_install() {
  make DESTDIR="$pkgdir" install
}

# vim:ft=sh syn=sh et sw=2:
