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

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 1 15:53:44 UTC 2021


    Date: Wednesday, December 1, 2021 @ 15:53:44
  Author: felixonmars
Revision: 1060576

archrelease: copy trunk to community-staging-any

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

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

Copied: python-humanize/repos/community-staging-any/PKGBUILD (from rev 1060575, python-humanize/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 15:53:44 UTC (rev 1060576)
@@ -0,0 +1,31 @@
+# Maintainer: Jerome Leclanche <jerome at leclan.ch>
+_pkgname=humanize
+pkgname=python-$_pkgname
+pkgver=3.1.0
+pkgrel=4
+pkgdesc="Common humanization utilities for Python"
+arch=("any")
+
+url="https://github.com/jmoiron/humanize"
+license=("MIT")
+depends=("python")
+makedepends=("python-setuptools" "python-setuptools-scm")
+source=("https://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
+sha256sums=("fd3eb915310335c63a54d4507289ecc7b3a7454cd2c22ac5086d061a3cbfd592")
+
+
+check() {
+	cd "$srcdir/$_pkgname-$pkgver"
+	python setup.py check
+}
+
+build() {
+	cd "$srcdir/$_pkgname-$pkgver"
+	python setup.py build
+}
+
+package() {
+	cd "$srcdir/$_pkgname-$pkgver"
+	python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build
+	install -Dm 644 LICENCE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list