# Template file for 'gflags'
pkgname=gflags
version=2.2.2
revision=1
build_style=cmake
configure_args=" -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=ON"
short_desc="A C++ library that implements commandline flags processing"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="http://gflags.github.io/gflags"
distfiles="https://github.com/gflags/gflags/archive/v${version}.tar.gz"
checksum=34af2f15cf7367513b352bdcd2493ab14ce43692d2dcd9dfc499492966c64dcf

post_install() {
	vlicense COPYING.txt
	vdoc ChangeLog.txt
	vdoc README.md
	rm -r ${DESTDIR}/tmp
}

gflags-devel_package() {
	short_desc+=" - development files"
	depends="${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/cmake
		vmove usr/lib/pkgconfig
		vmove usr/lib/*.a
		vmove usr/lib/*.so
	}
}

