void-packages/srcpkgs/re2/template
2016-03-01 21:10:06 -05:00

31 lines
791 B
Bash

# Template build file for 're2'.
pkgname=re2
reverts=20140304_1
version=2016.03.01
revision=1
wrksrc="${pkgname}-${version//./-}"
build_style=gnu-makefile
make_install_args="prefix=/usr"
short_desc="An efficient, principled regular expression library"
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
license="3-clause-BSD"
homepage="https://github.com/google/re2"
distfiles="${homepage}/archive/${version//./-}.tar.gz"
checksum=2dc6188270fe83660ccb379ef2d5ce38e0e38ca0e1c0b3af4b2b7cf0d8c9c11a
CXXFLAGS="-std=c++11"
LDFLAGS="-pthread"
post_install() {
vlicense LICENSE
}
re2-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
}
}