void-packages/srcpkgs/oniguruma/template

38 lines
989 B
Bash

# Template file for 'oniguruma'
pkgname=oniguruma
version=6.9.8
revision=1
build_style=gnu-configure
configure_args="--enable-posix-api=yes"
short_desc="Multi-charset regular expressions library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-2-Clause"
homepage="https://github.com/kkos/oniguruma"
changelog="https://github.com/kkos/oniguruma/releases"
distfiles="https://github.com/kkos/oniguruma/releases/download/v${version}/onig-${version}.tar.gz"
checksum=28cd62c1464623c7910565fb1ccaaa0104b2fe8b12bcd646e81f73b47535213e
post_install() {
vlicense COPYING
}
oniguruma-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/bin/onig-config
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}
oniguruma-doc_package() {
short_desc+=" - documentation"
pkg_install() {
vmkdir usr/share/doc/${sourcepkg}
vcopy "doc/*" usr/share/doc/${sourcepkg}
}
}