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

Felix Yan felixonmars at gemini.archlinux.org
Mon Nov 29 22:26:43 UTC 2021


    Date: Monday, November 29, 2021 @ 22:26:43
  Author: felixonmars
Revision: 1057672

archrelease: copy trunk to community-staging-any

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

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

Copied: python-progress/repos/community-staging-any/PKGBUILD (from rev 1057671, python-progress/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-29 22:26:43 UTC (rev 1057672)
@@ -0,0 +1,33 @@
+# Contributor: Eli Schwartz <eschwartz at archlinux.org>
+# Contributor: Guillaume Brogi <gui-gui at netcourrier dot com>
+
+_pkgname=progress
+pkgname=python-progress
+pkgver=1.6
+pkgrel=3
+pkgdesc="Easy to use progress bars for Python"
+arch=('any')
+url="https://github.com/verigak/${_pkgname}"
+license=('ISC')
+depends=('python')
+makedepends=('python-setuptools')
+source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
+sha256sums=('e4a0d9e4370cd09f29ecdf72bf84c7177caef8374a90a627c83a84e619eb0f3d')
+
+build() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    python setup.py build
+}
+
+check() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    python test_progress.py
+}
+
+package() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+	install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}



More information about the arch-commits mailing list