void-packages/srcpkgs/gflags/template
2016-11-08 12:08:05 +01:00

30 lines
793 B
Bash

# Template file for 'gflags'
pkgname=gflags
version=2.1.2
revision=2
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=d8331bd0f7367c8afd5fcb5f5e85e96868a00fd24b7276fa5fcee1e5575c2662
post_install() {
vlicense COPYING.txt
vdoc ChangeLog.txt
vdoc README.md
}
gflags-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove usr/lib/*.a
vmove usr/lib/*.so
}
}