aboutsummaryrefslogtreecommitdiffstats
path: root/main/subunit/APKBUILD
blob: 64d54e42467a8f41157ea4dd5c0f33ecaa268583 (plain) (blame)
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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=subunit
pkgver=1.2.0
pkgrel=3
pkgdesc="A streaming protocol for test results"
options="!check" # Dependencies for checking stuff are in testing/
url="https://launchpad.net/subunit"
arch="all"
license="Apache-2.0 BSD-3-Clause"
depends="python3 py3-extras py3-testtools"
makedepends="check-dev cppunit-dev perl-dev python3-dev"
#checkdepends="py-testtools py-fixtures py-hypothesis py-testscenarios bash"
subpackages="$pkgname-dev $pkgname-libs"
source="https://launchpad.net/subunit/trunk/${pkgver%.[0-9]}/+download/subunit-$pkgver.tar.gz"

prepare() {
	update_config_sub
}

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

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
	rm -f "$pkgdir"/usr/lib/*.a
}

sha512sums="f6559fd771ad0732985230d11a9a8326ef35c817b62d1f50dc332f0032f7b08559a46d2534983b7d3964e45682ac49b3e348581ee0983861390abcd4ec20459c  subunit-1.2.0.tar.gz"