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

Felix Yan felixonmars at archlinux.org
Mon Nov 9 15:46:12 UTC 2020


    Date: Monday, November 9, 2020 @ 15:46:11
  Author: felixonmars
Revision: 747129

archrelease: copy trunk to community-staging-any

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

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

Copied: python-infinity/repos/community-staging-any/PKGBUILD (from rev 747127, python-infinity/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 15:46:11 UTC (rev 747129)
@@ -0,0 +1,32 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+# Contributor: Husam Bilal <husam212 AT gmail DOT com>
+
+_name=infinity
+pkgname="python-${_name}"
+pkgver=1.5
+pkgrel=2
+pkgdesc='All-in-one infinity value for Python. Can be compared to any object.'
+url='https://github.com/kvesteri/infinity'
+depends=('python')
+checkdepends=('python-pytest')
+makedepends=('python-setuptools')
+license=('BSD')
+arch=('any')
+source=("https://pypi.python.org/packages/source/i/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('d61c16fe08749dab050ffb17f8cb392b22ef0c409d736625820419859a0533e067d04a3244e937cf968b40eb02d6bcecb0f80525797dc372eba7205836bad9cb')
+
+build() {
+  cd "${srcdir}/${_name}-${pkgver}"
+  python setup.py build
+}
+
+check() {
+  cd "${srcdir}/${_name}-${pkgver}"
+  py.test .
+}
+
+package() {
+  cd "${srcdir}/${_name}-${pkgver}"
+  python setup.py install --root="${pkgdir}/" --optimize=1
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list