diff options
Diffstat (limited to 'testing/py2-contextlib2/APKBUILD')
-rw-r--r-- | testing/py2-contextlib2/APKBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/testing/py2-contextlib2/APKBUILD b/testing/py2-contextlib2/APKBUILD new file mode 100644 index 0000000000..183d3a9515 --- /dev/null +++ b/testing/py2-contextlib2/APKBUILD @@ -0,0 +1,31 @@ +# Contributor: Stuart Cardall <developer@it-offshore.co.uk> +# Maintainer: Stuart Cardall <developer@it-offshore.co.uk> +pkgname=py2-contextlib2 +_pkgname=${pkgname#py2-*} +pkgver=0.4.0 +pkgrel=0 +pkgdesc="Backport of the Python3 stdlib contextlib module" +url="http://contextlib2.readthedocs.org/" +arch="noarch" +license="PSF" +depends="python2" +makedepends="python2-dev" +source="$pkgname-$pkgver.tar.gz::http://http.debian.net/debian/pool/main/c/$_pkgname/${_pkgname}_${pkgver}.orig.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + cd "$builddir" + python2 setup.py build +} + +check() { + cd "$builddir" + python2 test_contextlib2.py +} + +package() { + cd "$builddir" + python2 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="622762c5490f0ff3e4b421a63bccce8fe0753977112ee0db9640dad31093c40c8a331f3d7cade9925f17903eaeaa376925ef607d7a440170c7c5ec1c8e04f56a py2-contextlib2-0.4.0.tar.gz" |