aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-05-02 19:40:38 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2019-05-11 07:12:59 +0000
commit0aa73d048686ea281b12b01265336949fbb87c09 (patch)
treeb56b1e0f8cc785efbbbb2c64b804ad425e744367
parentfdbb6781ba9faf7eaa06b0b6a43aeaa42f96dc8f (diff)
downloadaports-0aa73d048686ea281b12b01265336949fbb87c09.tar.gz
aports-0aa73d048686ea281b12b01265336949fbb87c09.tar.bz2
aports-0aa73d048686ea281b12b01265336949fbb87c09.tar.xz
main/subunit: modernize
- Fix license - Fix indent on line 26 - Add check support but keep it disabled due to dependencies being in testing/
-rw-r--r--main/subunit/APKBUILD16
1 files changed, 12 insertions, 4 deletions
diff --git a/main/subunit/APKBUILD b/main/subunit/APKBUILD
index 1fd0c92f88..06a965f978 100644
--- a/main/subunit/APKBUILD
+++ b/main/subunit/APKBUILD
@@ -1,14 +1,16 @@
+# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=subunit
pkgver=1.2.0
-pkgrel=0
+pkgrel=1
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 BSD"
+license="Apache-2.0 BSD-3-Clause"
depends="python2"
makedepends="check-dev cppunit-dev perl-dev python2-dev"
-options="!check"
+#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"
builddir="$srcdir"/subunit-$pkgver
@@ -17,11 +19,12 @@ prepare() {
cd "$builddir"
update_config_sub
}
+
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
- --host=$CHOST \
+ --host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
@@ -30,6 +33,11 @@ build() {
make
}
+check() {
+ cd "$builddir"
+ make check
+}
+
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install