void-packages/srcpkgs/libcppunit/template

44 lines
1.2 KiB
Bash

# Template file for 'libcppunit'
pkgname=libcppunit
version=1.14.0
revision=2
wrksrc="cppunit-${version}"
build_style=gnu-configure
hostmakedepends="pkg-config automake libtool"
short_desc="C++ unit testing framework"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1-or-later"
# Also see https://mmohrhard.wordpress.com/2017/05/01/cppunit-1-14-released/
homepage="http://cppunit.sourceforge.net"
distfiles="http://dev-www.libreoffice.org/src/cppunit-${version}.tar.gz"
checksum=3d569869d27b48860210c758c4f313082103a5e58219a7669b52bfd29d674780
replaces="cppunit>=0"
pre_configure() {
autoreconf -fi
}
libcppunit-devel_package() {
replaces="cppunit-devel>=0"
depends="libcppunit>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/bin/DllPlugInTester
}
}
libcppunit-examples_package() {
noarch=yes
replaces="cppunit-doc>=0"
depends="libcppunit-devel>=${version}_${revision}"
short_desc+=" - examples"
pkg_install() {
vmkdir usr/share/libcppunit
vcopy examples usr/share/libcppunit
rm -f -- ${PKGDESTDIR}/usr/share/libcppunit/examples/simple/.libs/simple
}
}