New package: CUnit-2.1.3

This commit is contained in:
Piotr Wójcik 2021-07-01 23:21:49 +02:00 committed by Piotr
parent 0ef3f58606
commit f489fa4544
3 changed files with 39 additions and 0 deletions

1
srcpkgs/CUnit-devel Symbolic link
View File

@ -0,0 +1 @@
CUnit

37
srcpkgs/CUnit/template Normal file
View File

@ -0,0 +1,37 @@
# 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"
}
}

1
srcpkgs/CUnit/update Normal file
View File

@ -0,0 +1 @@
pattern='(?<!-)\b\Q'"$pkgname"'\E[-_]?((src|source)[-_])?v?\K([^-/_\s]*?\d[^/_\s]*?)(?=(?:[-_.](?:src|source|orig))?\.(?:[jt]ar|shar|t[bglx]z|tbz2|zip))\b'