summaryrefslogtreecommitdiffstats
path: root/abs/core/python2-contextlib2/PKGBUILD
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-04-11 20:47:11 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-04-11 20:47:11 (GMT)
commit9b1aa354bb83c7ee9c17efb67ae3a093bd0aafcc (patch)
tree6fc098614cfd24d703aec79c9c2cb5a6bf546a52 /abs/core/python2-contextlib2/PKGBUILD
parent7070da83e6a9742effc1c3ac85c3e8bed8f01602 (diff)
downloadlinhes_pkgbuild-9b1aa354bb83c7ee9c17efb67ae3a093bd0aafcc.zip
linhes_pkgbuild-9b1aa354bb83c7ee9c17efb67ae3a093bd0aafcc.tar.gz
linhes_pkgbuild-9b1aa354bb83c7ee9c17efb67ae3a093bd0aafcc.tar.bz2
python2-contextlib2: dep of python-pytest-plugins
Diffstat (limited to 'abs/core/python2-contextlib2/PKGBUILD')
-rw-r--r--abs/core/python2-contextlib2/PKGBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/abs/core/python2-contextlib2/PKGBUILD b/abs/core/python2-contextlib2/PKGBUILD
new file mode 100644
index 0000000..43bd8cf
--- /dev/null
+++ b/abs/core/python2-contextlib2/PKGBUILD
@@ -0,0 +1,27 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars@archlinux.org>
+# Contributor: Cedric Girard <girard.cedric@gmail.com>
+
+_pypiname=contextlib2
+pkgname=python2-contextlib2
+pkgver=0.5.5
+pkgrel=1
+pkgdesc="contextlib2 is a backport of the standard library’s contextlib module to earlier Python versions"
+arch=('any')
+url="http://pypi.python.org/pypi/${_pypiname}"
+license=('PSF')
+depends=('python2')
+makedepends=('python2-setuptools')
+source=("https://pypi.io/packages/source/${_pypiname:0:1}/${_pypiname}/${_pypiname}-$pkgver.tar.gz")
+sha512sums=('d5c97ff8eef7d8b14da0bfdc3515f8019bcc05e24cb922ce08ca2366d5182b029d873bbf172e9e6791297df05e24f6faf40868550063dcdb54f451b14c9e505d')
+
+build() {
+ cd "${srcdir}/${_pypiname}-$pkgver"
+ python2 setup.py build
+}
+
+package() {
+ cd ${_pypiname}-$pkgver
+ python2 setup.py install --root="${pkgdir}"
+ install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}