diff options
author | Kevin Daudt <ops@ikke.info> | 2018-09-15 15:02:32 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2018-09-17 06:36:13 +0000 |
commit | f0504ef8de5a2a6faacdbc078987e440f043a7c8 (patch) | |
tree | 0d44657ae22ffa173ac67d6de191c6e5d26ace2e /testing | |
parent | 450e3c1cff385e4bcb8dd7ce56a755ed98195c32 (diff) | |
download | aports-f0504ef8de5a2a6faacdbc078987e440f043a7c8.tar.bz2 aports-f0504ef8de5a2a6faacdbc078987e440f043a7c8.tar.xz |
testing/py2-enum34: new aport
dependency for py-traitlets (python2)
Diffstat (limited to 'testing')
-rw-r--r-- | testing/py2-enum34/APKBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/testing/py2-enum34/APKBUILD b/testing/py2-enum34/APKBUILD new file mode 100644 index 0000000000..ee9e3d52fa --- /dev/null +++ b/testing/py2-enum34/APKBUILD @@ -0,0 +1,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" |