38 lines
967 B
Bash
38 lines
967 B
Bash
# Template file for 'CUnit'
|
|
pkgname=CUnit
|
|
version=2.1.3
|
|
revision=1
|
|
_distver="${version%.*}-${version##*.}"
|
|
wrksrc="CUnit-${_distver}"
|
|
build_style=gnu-configure
|
|
configure_args="--disable-console"
|
|
hostmakedepends="autoconf automake libtool"
|
|
short_desc="Unit Testing Framework for C"
|
|
maintainer="Piotr Wójcik <chocimier@tlen.pl>"
|
|
license="LGPL-2.0-or-later"
|
|
homepage="http://cunit.sourceforge.net/"
|
|
distfiles="${SOURCEFORGE_SITE}/cunit/CUnit/${_distver}/CUnit-${_distver}.tar.bz2"
|
|
checksum=f5b29137f845bb08b77ec60584fdb728b4e58f1023e6f249a464efa49a40f214
|
|
|
|
pre_configure() {
|
|
vsed -e 's@./configure@:@' -i bootstrap
|
|
sh bootstrap .
|
|
}
|
|
|
|
post_install() {
|
|
mv ${DESTDIR}/usr/doc ${DESTDIR}/usr/share
|
|
}
|
|
|
|
CUnit-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/share/man/man3
|
|
vmove usr/share/doc
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|