blob: 5b9064ec18b2de28ef2c8b4e36ae7de2631117f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=cunit
_pkgname=CUnit
pkgver=2.1.3
_pkgver=${pkgver%.*}-${pkgver##*.}
pkgrel=4
pkgdesc="Automated testing framework for C"
url="https://cunit.sourceforge.net/"
arch="all"
license="GPL-2.0"
makedepends="automake autoconf libtool bash"
subpackages="$pkgname-dev $pkgname-doc"
source="https://downloads.sourceforge.net/project/cunit/$_pkgname/$_pkgver/$_pkgname-$_pkgver.tar.bz2
path-makefile.patch"
builddir="$srcdir/$_pkgname-$_pkgver"
prepare() {
default_prepare
libtoolize --force --copy
aclocal
autoheader
automake --add-missing --include-deps --copy
autoconf
sed -i "s/@VERSION@-@RELEASE@/$pkgver/" cunit.pc.in
update_config_sub
}
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--includedir=/usr/include \
--datarootdir=/usr/share \
--libdir=/usr/lib \
--enable-debug \
--enable-examples \
--enable-automated \
--enable-basic \
--enable-test \
--disable-static
make
}
check() {
make check
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="547b417109332446dfab8fda17bf4ccd2da841dc93f824dc90a20635bcf1fb80fb2176500d8a0906940f3f3d3e2f77b2d70a71090c9ab84ad9af43f3582bc487 CUnit-2.1-3.tar.bz2
94b9ef959ff9808c6adb2022a8c085232bc3ca0d5023584a13c35c6cb17b98674b7cc252d65d53a5b3db085f82853463ade7f9b910b564befe1d7b1e868de105 path-makefile.patch"
|