[arch-commits] Commit in python-nine/repos (community-any community-any/PKGBUILD)

Thore Bödecker foxxx0 at archlinux.org
Tue Jul 24 09:39:42 UTC 2018


    Date: Tuesday, July 24, 2018 @ 09:39:42
  Author: foxxx0
Revision: 363276

archrelease: copy trunk to community-any

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

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

Copied: python-nine/repos/community-any/PKGBUILD (from rev 363275, python-nine/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2018-07-24 09:39:42 UTC (rev 363276)
@@ -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=3
+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