aboutsummaryrefslogtreecommitdiffstats
path: root/main/subunit/APKBUILD
blob: 736d80b6e7dd089c929a46ff10e9c4ad03f2f3c9 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=subunit
pkgver=0.0.15
pkgrel=0
pkgdesc="A streaming protocol for test results"
url="https://launchpad.net/subunit"
arch="all"
license="Apache BSD"
depends="python"
depends_dev=""
makedepends="$depends_dev check-dev cppunit-dev perl-dev python-dev"
install=""
subpackages="$pkgname-dev $pkgname-libs"
source="https://launchpad.net/subunit/trunk/$pkgver/+download/subunit-$pkgver.tar.gz"

_builddir="$srcdir"/subunit-$pkgver
prepare() {
	local i
	cd "$_builddir"
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="5d3619500e47ebe099113c5f29f640d7  subunit-0.0.15.tar.gz"
sha256sums="a4196b7337cc51e15abb1de2e9c0ecd5c836774c9ca8e504012c83c856674698  subunit-0.0.15.tar.gz"
sha512sums="f73c29371a4eb2c0b9257e6e0a829378755ddcf276f2b9f9117b0024756395994739e2e9a14df0f6b5a04356238ea46b8bcbdcb2be7ccece4e2b8748ceb951c5  subunit-0.0.15.tar.gz"