mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
32 lines
893 B
Plaintext
32 lines
893 B
Plaintext
# 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"
|