Date: Thursday, April 6, 2023 @ 13:31:42
  Author: felixonmars
Revision: 1438911

archrelease: copy trunk to community-staging-any

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

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

Copied: python-nine/repos/community-staging-any/PKGBUILD (from rev 1438908, 
python-nine/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-06 13:31:42 UTC (rev 1438911)
@@ -0,0 +1,25 @@
+# Maintainer: Thore Bödecker <[email protected]>
+# Contributor: Maikel Wever <[email protected]>
+pkgname='python-nine'
+_pkgbase="${pkgname#python-}"
+pkgver=1.1.0
+pkgrel=7
+arch=('any')
+pkgdesc="Python 3/2 compatibility library, allowing to add py2 compat to py3 
code"
+url="https://github.com/nandoflorestan/nine/";
+license=('custom')
+depends=('python')
+makedepends=('python-setuptools')
+source=("${_pkgbase}-${pkgver}.tar.gz::https://github.com/nandoflorestan/nine/archive/v${pkgver}.tar.gz";)
+sha512sums=('b445cd1f324a0d2045081226fb650eebd8dbc86942faff204c19fffc022f0190fc04abec563b107cb860202d29f08c132056b1098495471fdfda104e57878828')
+
+check() {
+  cd "${srcdir}/${_pkgbase}-${pkgver}"
+  python -m unittest discover -vs .
+}
+
+package() {
+  cd "${srcdir}/${_pkgbase}-${pkgver}"
+  python ./setup.py install --root="$pkgdir/" --optimize=1
+  install -D -m0644 LICENSE.rst 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+}

Reply via email to