38 lines
947 B
Bash
38 lines
947 B
Bash
# Template file for 'oniguruma'
|
|
pkgname=oniguruma
|
|
version=6.9.5.rev1
|
|
revision=1
|
|
_ver="${version%.*}_${version##*.}"
|
|
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"
|
|
distfiles="${homepage}/releases/download/v${_ver}/onig-${_ver}.tar.gz"
|
|
checksum=d33c849d1672af227944878cefe0a8fcf26fc62bedba32aa517f2f63c314a99e
|
|
|
|
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}
|
|
}
|
|
}
|