mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
testing/py2-contextlib2: new aport
This commit is contained in:
parent
28ff3d03c0
commit
a05bc05b8e
31
testing/py2-contextlib2/APKBUILD
Normal file
31
testing/py2-contextlib2/APKBUILD
Normal file
@ -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"
|
Loading…
Reference in New Issue
Block a user