[arch-commits] Commit in (4 files)

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


    Date: Tuesday, July 24, 2018 @ 09:39:03
  Author: foxxx0
Revision: 363275

import from aur, some enhancements

Added:
  python-nine/
  python-nine/repos/
  python-nine/trunk/
  python-nine/trunk/PKGBUILD

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

Added: python-nine/trunk/PKGBUILD
===================================================================
--- python-nine/trunk/PKGBUILD	                        (rev 0)
+++ python-nine/trunk/PKGBUILD	2018-07-24 09:39:03 UTC (rev 363275)
@@ -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"
+}


Property changes on: python-nine/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list