42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
# Template file for 'pcre2'
|
|
pkgname=pcre2
|
|
version=10.42
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--with-pic --enable-pcre2-16 --enable-pcre2-32
|
|
--enable-pcre2test-libreadline --enable-pcre2grep-libz --enable-pcre2grep-libbz2
|
|
--enable-newline-is-anycrlf --enable-jit --enable-static"
|
|
makedepends="zlib-devel bzip2-devel readline-devel"
|
|
short_desc="Perl Compatible Regular Expressions (2nd version)"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://www.pcre.org/"
|
|
changelog="https://raw.githubusercontent.com/PCRE2Project/pcre2/master/NEWS"
|
|
distfiles="https://github.com/PhilipHazel/pcre2/releases/download/pcre2-${version}/pcre2-${version}.tar.bz2"
|
|
checksum=8d36cd8cb6ea2a4c2bb358ff6411b0c788633a2a45dabbf1aeb4b701d1b5e840
|
|
|
|
post_install() {
|
|
vlicense LICENCE
|
|
}
|
|
|
|
libpcre2_package() {
|
|
short_desc+=" - shared libraries"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|
|
|
|
pcre2-devel_package() {
|
|
depends="zlib-devel bzip2-devel libpcre2>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/share/man/man3
|
|
vmove usr/share/doc
|
|
vmove usr/bin/pcre2-config
|
|
}
|
|
}
|