47 lines
1.2 KiB
Bash
47 lines
1.2 KiB
Bash
# Template file for 'libcppunit'
|
|
pkgname=libcppunit
|
|
version=1.15.1
|
|
revision=1
|
|
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=89c5c6665337f56fd2db36bc3805a5619709d51fb136e51937072f63fcc717a7
|
|
replaces="cppunit>=0"
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
|
|
post_install() {
|
|
find examples -type d -name .libs | xargs rm -rf
|
|
}
|
|
|
|
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() {
|
|
replaces="cppunit-doc>=0"
|
|
depends="libcppunit-devel>=${version}_${revision}"
|
|
short_desc+=" - examples"
|
|
pkg_install() {
|
|
vmkdir usr/share/libcppunit
|
|
vcopy examples usr/share/libcppunit
|
|
}
|
|
}
|