aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py2-enum34/APKBUILD
blob: ee9e3d52fab370a00f24915eb3624e97b7cbe506 (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
# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=py2-enum34
pkgver=1.1.6
pkgrel=0
pkgdesc="backport of the new Python stdlib enum module available in Python 3.4"
url="https://bitbucket.org/stoneleaf/enum34/"
arch="noarch"
license="BSD-3-Clause-Clear"
depends="python2"
makedepends="py-setuptools"
source="$pkgname-$pkgver.tar.gz::https://bitbucket.org/stoneleaf/enum34/get/$pkgver.tar.gz"
_hash=58c4cd7174ca #builddir contains hash
builddir="$srcdir/stoneleaf-${pkgname#py2-}-$_hash"

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

check() {
	cd "$builddir"
	python2 setup.py test
}

package() {
	cd "$builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="5d35e30cd9722abc8e5ecf4a3a4070cb0975afdde17234875a7f6b1e690289f9c6c18edabdd5a3823c895f688014a85175d722581242042c2c2e89e7e052b943  py2-enum34-1.1.6.tar.gz"