void-packages/srcpkgs/pcre2/template
maxice8 49d9b559b8 pcre2: update to 10.31.
Closes: #11594 [via git-merge-pr]
2018-02-20 01:32:04 -05:00

46 lines
1.2 KiB
Bash

# Template file for 'pcre2'
pkgname=pcre2
version=10.31
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"
hostmakedepends="automake libtool"
makedepends="zlib-devel bzip2-devel readline-devel"
short_desc="Perl Compatible Regular Expressions (2nd version)"
maintainer="Enno Boland <gottox@voidlinux.eu>"
homepage="http://www.pcre.org/"
license="BSD"
distfiles="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre2-${version}.tar.bz2"
checksum=e07d538704aa65e477b6a392b32ff9fc5edf75ab9a40ddfc876186c4ff4d68ac
post_install() {
vlicense LICENCE
}
pre_configure() {
autoreconf -fi
}
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
}
}