void-packages/srcpkgs/gflags/template
2017-07-30 15:40:50 +00:00

32 lines
841 B
Bash

# Template file for 'gflags'
pkgname=gflags
version=2.2.1
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="Diogo Leal <diogo@diogoleal.com>"
license="3-clause-BSD"
homepage="http://gflags.github.io/gflags"
distfiles="https://github.com/gflags/gflags/archive/v${version}.tar.gz"
checksum=ae27cdbcd6a2f935baa78e4f21f675649271634c092b1be01469440495609d0e
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
}
}