summaryrefslogtreecommitdiff
path: root/repo/cunit/cunit.xibuild
blob: 3b4b04f4aefc0b2efa17d424e38f74c0336b0121 (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
#!/bin/sh

NAME="cunit"
DESC="Automated testing framework for C"

MAKEDEPS=" automake autoconf libtool bash"

PKG_VER=2.1-3
SOURCE="https://downloads.sourceforge.net/project/cunit/CUnit/$PKG_VER/CUnit-$PKG_VER.tar.bz2"

ADDITIONAL="
path-makefile.patch
"

prepare() {
    apply_patches

	libtoolize --force --copy
	aclocal
	autoheader
	automake --add-missing --include-deps --copy
	autoconf
	sed -i "s/@VERSION@-@RELEASE@/$PKG_VER/" cunit.pc.in
}

build() {
	./configure \
		--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="$PKG_DEST" install
}