aboutsummaryrefslogtreecommitdiffstats
path: root/main/subunit/APKBUILD
blob: 340744bf62c67b8724f105181795a40fbb49408d (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=subunit
pkgver=1.1.0
pkgrel=0
pkgdesc="A streaming protocol for test results"
url="https://launchpad.net/subunit"
arch="all"
license="Apache BSD"
depends="python2"
depends_dev=""
makedepends="$depends_dev check-dev cppunit-dev perl-dev python2-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
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete

}

md5sums="d1c5b2649047c1027d7054cb70039cca  subunit-1.1.0.tar.gz"
sha256sums="4869a5bec96b7b4e760d053f842d80548008740cda1a7efbb9053063ee818a51  subunit-1.1.0.tar.gz"
sha512sums="11aaa8f2ae04232623fbfb7b9561aa15bddbc55201a3a16eea1319a076de3417977590c57bb7ab0bbd86b321b203241ba5ea8050932759aeb3f3ed71b723a98b  subunit-1.1.0.tar.gz"