# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
setvar pkgname = 'subunit'
setvar pkgver = '1.2.0'
setvar pkgrel = '0'
setvar pkgdesc = ""A streaming protocol for test results""
setvar url = ""https://launchpad.net/subunit""
setvar arch = ""all""
setvar license = ""Apache BSD""
setvar depends = ""python2""
setvar makedepends = ""check-dev cppunit-dev perl-dev python2-dev""
setvar options = ""!check""
setvar subpackages = ""$pkgname-dev $pkgname-libs""
setvar source = ""https://launchpad.net/subunit/trunk/${pkgver%.[0-9]}/+download/subunit-$pkgver.tar.gz""
setvar builddir = ""$srcdir"/subunit-$pkgver"

proc prepare {
	cd $builddir
	update_config_sub
}
proc build {
	cd $builddir
	./configure \
		--build=$CBUILD \
        --host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

proc package {
	cd $builddir
	make DESTDIR="$pkgdir" install
	find $pkgdir '(' -name perllocal.pod -o -name .packlist ')' -delete
}

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