# Template build file for 're2'.
pkgname=re2
version=20130115
revision=1
build_style=gnu-makefile
make_install_args="prefix=/usr"
wrksrc=re2
short_desc="An efficient, principled regular expression library"
maintainer="ojab <ojab@ojab.ru>"
license="LGPL2.1"
homepage="https://code.google.com/p/re2/"
checksum=a95d83ed8203817587f7cc368b6f7199d8a4b1558372c306b07201058b92e1fe
distfiles="https://${pkgname}.googlecode.com/files/${pkgname}-${version}.tgz"

re2_package() {
	pkg_install() {
		vmove all
	}
}

re2-devel_package() {
	short_desc="${short_desc} -- development files"
	depends="${sourcepkg}-${version}_${revision}"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.a"
	}
}