[arch-commits] Commit in python-infinity/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Tue Nov 30 20:19:06 UTC 2021
Date: Tuesday, November 30, 2021 @ 20:19:05
Author: felixonmars
Revision: 1057987
archrelease: copy trunk to community-staging-any
Added:
python-infinity/repos/community-staging-any/
python-infinity/repos/community-staging-any/PKGBUILD
(from rev 1057983, python-infinity/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-infinity/repos/community-staging-any/PKGBUILD (from rev 1057983, python-infinity/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-11-30 20:19:05 UTC (rev 1057987)
@@ -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=4
+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