aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-tappy/APKBUILD
blob: 6d6498a64e6ed850b8df4bb14eabb0285c64b5e6 (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
44
45
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=py-tappy
_pkgname=tap.py
pkgver=2.5
pkgrel=0
pkgdesc="Python Test Anything Protocol (TAP) tools"
url="https://github.com/python-tap/tappy"
arch="noarch"
license="BSD-2-Clause"
makedepends="python2-dev python3-dev py-setuptools py-babel"
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/t/tap.py/tap.py-${pkgver}.tar.gz"
options="!check" # no test suite
builddir="$srcdir/tap.py-$pkgver"

build() {
	cd "$builddir"
	python2 setup.py build
	python3 setup.py build
}

package() {
	mkdir -p "$pkgdir"
}

_py2() {
	_py python2
}

_py3() {
	_py python3
}

_py() {
	local python="$1"
	pkgdesc="$pkgdesc (for $python)"
	install_if="$pkgname=$pkgver-r$pkgrel $python"

	cd "$builddir"
	$python setup.py install --prefix=/usr --root="$subpkgdir"
}



sha512sums="762cac80e1f79c789c90325723d2803f7f121dcfa62abd9ca33add1bac30d5cc719f99c6225d2c532f4a2a00aa56ca15928da1629fdcf66fb79701cc3e64c1b1  py-tappy-2.5.tar.gz"