libcppunit: mark -examples package as noarch and fix license=

This commit is contained in:
maxice8 2019-01-12 02:12:31 -02:00 committed by maxice8
parent 86789013cd
commit 3e1f5a2c47

View file

@ -1,25 +1,25 @@
# Template file for 'libcppunit'
pkgname=libcppunit
version=1.14.0
revision=1
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"
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
wrksrc="cppunit-$version"
LDFLAGS="-dl"
replaces="cppunit>=0"
pre_configure() {
autoreconf -fi
}
libcppunit-devel_package() {
replaces="cppunit-devel>=0"
depends="libcppunit>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
@ -32,6 +32,8 @@ libcppunit-devel_package() {
}
libcppunit-examples_package() {
noarch=yes
replaces="cppunit-doc>=0"
depends="libcppunit-devel>=${version}_${revision}"
short_desc+=" - examples"
pkg_install() {