[arch-commits] Commit in python-progress/repos (community-any community-any/PKGBUILD)

Eli Schwartz eschwartz at archlinux.org
Wed May 16 19:55:23 UTC 2018


    Date: Wednesday, May 16, 2018 @ 19:55:22
  Author: eschwartz
Revision: 323191

archrelease: copy trunk to community-any

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

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

Copied: python-progress/repos/community-any/PKGBUILD (from rev 323189, python-progress/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2018-05-16 19:55:22 UTC (rev 323191)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+# Contributor: Guillaume Brogi <gui-gui at netcourrier dot com>
+
+_pkgname=progress
+pkgbase=python-progress
+pkgname=('python-progress' 'python2-progress')
+pkgver=1.3
+pkgrel=2
+pkgdesc="Easy to use progress bars for Python"
+arch=('any')
+url="https://github.com/verigak/${_pkgname}"
+license=('ISC')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
+sha256sums=('f0294eca56eed70f3459e434e8fe4c223a677bdfea6a28a97740f91a86130c43')
+
+build() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    python setup.py build
+    python2 setup.py build
+}
+
+package_python-progress() {
+    depends=('python')
+
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+	install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
+
+package_python2-progress() {
+    depends=('python2')
+
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+    python2 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