void-packages/srcpkgs/ucommon/template

40 lines
1.0 KiB
Bash

# Template file for 'ucommon'
pkgname=ucommon
version=7.0.0
revision=2
build_style=gnu-configure
makedepends="gnutls-devel"
short_desc="Light-weight C++ library to facilitate using C++ design patterns"
maintainer="David <kalichakra@zoho.com>"
license="LGPL-3.0-or-later"
homepage="http://www.gnu.org/software/commoncpp/"
distfiles="${GNU_SITE}/commoncpp/ucommon-${version}.tar.gz"
checksum="6ac9f76c2af010f97e916e4bae1cece341dc64ca28e3881ff4ddc3bc334060d7"
export CXXFLAGS="-std=c++14"
ucommon-devel_package() {
depends="${sourcepkg}>=${version}_${revision} ${makedepends}"
short_desc+=" - development files"
pkg_install() {
vmove usr/bin/ucommon-config
vmove usr/bin/commoncpp-config
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
vmove usr/share/man/man1
vmove usr/share/ucommon/cmake
}
}
ucommon-tools_package() {
short_desc+=" - tools"
pkg_install() {
for f in sockaddr pdetach scrub-files urlout mdsum zerofill \
keywait args car; do
vmove usr/bin/${f}
done
}
}