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

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
	}
}
