void-packages/srcpkgs/cbang/template

44 lines
1.2 KiB
Bash

# Template file for 'cbang'
pkgname=cbang
version=1.8.0
revision=3
build_style=scons
make_build_args="sharedlib=1 staticlib=1"
make_install_args="${make_build_args}"
hostmakedepends="pkg-config"
makedepends="boost-devel bzip2-devel expat-devel leveldb-devel libevent-devel
openssl-devel libyaml-devel re2-devel snappy-devel sqlite-devel zlib-devel"
checkdepends="python3-six"
short_desc="C! (a.k.a. C-Bang) collection of C++ utility libraries"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-only"
homepage="https://github.com/CauldronDevelopmentLLC/cbang"
distfiles="https://github.com/CauldronDevelopmentLLC/cbang/archive/${version}.tar.gz"
checksum=4be28b0aa0d024e5c9fd274264bed7f82551219414c12c45e35afd8946f6e7d7
post_build() {
cd tests
do_build
}
do_check() {
cd tests
./testHarness
}
post_install() {
# Create missing symbolic links for the shared library
ln -sf libcbang0.so.* ${DESTDIR}/usr/lib/libcbang0.so
ln -sf libcbang0.so.* ${DESTDIR}/usr/lib/libcbang.so
}
cbang-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version_revision} ${makedepends}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}