[arch-commits] Commit in python-contextlib2/repos (2 files)

Felix Yan fyan at archlinux.org
Sat Jan 23 06:17:30 UTC 2016


    Date: Saturday, January 23, 2016 @ 07:17:29
  Author: fyan
Revision: 158647

archrelease: copy trunk to community-any

Added:
  python-contextlib2/repos/community-any/
  python-contextlib2/repos/community-any/PKGBUILD
    (from rev 158646, python-contextlib2/trunk/PKGBUILD)

----------+
 PKGBUILD |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

Copied: python-contextlib2/repos/community-any/PKGBUILD (from rev 158646, python-contextlib2/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2016-01-23 06:17:29 UTC (rev 158647)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Cedric Girard <girard.cedric at gmail.com>
+
+pkgbase=python-contextlib2
+_pypiname=contextlib2
+pkgname=(python-contextlib2 python2-contextlib2)
+pkgver=0.5.1
+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')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://pypi.python.org/packages/source/${_pypiname:0:1}/${_pypiname}/${_pypiname}-$pkgver.tar.gz")
+md5sums=('b7f4c5a2b900c419b11b20f59838de1b')
+
+prepare() {
+  cp -a ${_pypiname}-$pkgver{,-py2}
+}
+
+build() {
+  cd "${srcdir}/${_pypiname}-$pkgver"
+  python setup.py build
+
+  cd "${srcdir}/${_pypiname}-$pkgver-py2"
+  python2 setup.py build
+}
+
+package_python-contextlib2() {
+  depends=('python')
+
+  cd ${_pypiname}-$pkgver
+  python setup.py install --root="${pkgdir}"
+  install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-contextlib2() {
+  depends=('python2')
+
+  cd ${_pypiname}-$pkgver-py2
+  python2 setup.py install --root="${pkgdir}"
+  install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list