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

Thore Bödecker foxxx0 at archlinux.org
Wed Jul 25 06:18:38 UTC 2018


    Date: Wednesday, July 25, 2018 @ 06:18:37
  Author: foxxx0
Revision: 363349

archrelease: copy trunk to community-staging-any

Added:
  python-nine/repos/community-staging-any/
  python-nine/repos/community-staging-any/PKGBUILD
    (from rev 363348, python-nine/trunk/PKGBUILD)

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

Copied: python-nine/repos/community-staging-any/PKGBUILD (from rev 363348, python-nine/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-25 06:18:37 UTC (rev 363349)
@@ -0,0 +1,39 @@
+# Maintainer: Thore Bödecker <foxxx0 at archlinux.org>
+# Contributor: Maikel Wever <maikelwever at gmail.com>
+pkgbase='python-nine'
+_pkgbase="${pkgbase#python-}"
+pkgname=('python-nine' 'python2-nine')
+pkgver=1.0.0
+pkgrel=4
+arch=('any')
+pkgdesc="Python 3/2 compatibility library, allowing to add py2 compat to py3 code"
+url="https://github.com/nandoflorestan/nine/"
+license=('custom')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://github.com/nandoflorestan/nine/archive/v${pkgver}.tar.gz")
+sha512sums=('371f7d9dbfd14bc0f81c9c734e8c3f133e3ccd8a3571d0ef2edbc9532a8d0c47cf29ceaa8bcd9e095e098e547abc329a787e43ba3bf6b0f99b8df0a89755cd52')
+
+prepare(){
+  cp -r "${srcdir}/${_pkgbase}-${pkgver}" "${srcdir}/${_pkgbase}-${pkgver}-py2"
+}
+
+check() {
+  cd "${srcdir}/${_pkgbase}-${pkgver}"
+  python ./setup.py test
+  cd "${srcdir}/${_pkgbase}-${pkgver}-py2"
+  python2 ./setup.py test
+}
+
+package_python-nine() {
+  depends=('python')
+  cd "${srcdir}/${_pkgbase}-${pkgver}"
+  python ./setup.py install --root="$pkgdir/" --optimize=1
+  install -D -m0644 LICENSE.rst "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+}
+
+package_python2-nine() {
+  depends=('python2')
+  cd "${srcdir}/${_pkgbase}-${pkgver}-py2"
+  python2 ./setup.py install --root="$pkgdir/" --optimize=1
+  install -D -m0644 LICENSE.rst "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+}



More information about the arch-commits mailing list