aboutsummaryrefslogtreecommitdiffstats
path: root/main/subunit/APKBUILD
blob: b22d199a7b027b895177049836ddad711dda04d4 (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.18
pkgrel=2
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="6cbed838fefd8be7380197822eb0a98a  subunit-0.0.18.tar.gz"
sha256sums="f4508a83b1206a85f6c1cfc57f83edc2ca13d62cc65be90ec27eadfa792a6eb4  subunit-0.0.18.tar.gz"
sha512sums="d992207398fa29ac61b32b4b671c686c6af4de804bc9ef9b5bde78f5036880cfa670dded10fb272f41f7d57d68f91061c1c7b89039bda0c3c775df329ce912f6  subunit-0.0.18.tar.gz"