Date: Sunday, July 8, 2018 @ 12:56:40
  Author: foutrelis
Revision: 354851

archrelease: copy trunk to community-staging-any

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

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

Copied: python-progressbar/repos/community-staging-any/PKGBUILD (from rev 
354849, python-progressbar/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2018-07-08 12:56:40 UTC (rev 354851)
@@ -0,0 +1,47 @@
+# Maintainer: Maxim Andersson <thesilentboat...@gmail.com>
+# Co-Maintainer: NicoHood <archlinux {cat} nicohood {dog} de>
+# PGP ID: 97312D5EB9D7AE7D0BD4307351DAE9B7C1AE9161
+
+_pkgname=python-progressbar
+pkgbase=python-progressbar
+pkgdesc="A progress bar for Python 2 and Python 3"
+pkgname=('python-progressbar' 'python2-progressbar')
+pkgver=3.38.0
+pkgrel=2
+url="https://github.com/WoLpH/python-progressbar";
+license=('BSD')
+arch=("any")
+makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools' 
'python-utils' 'python2-utils')
+source=("${_pkgname}-${pkgver}.tar.xz::https://github.com/WoLpH/python-progressbar/releases/download/v${pkgver}/python-progressbar-v${pkgver}.tar.xz";
+        
"${_pkgname}-${pkgver}.tar.xz.asc::https://github.com/WoLpH/python-progressbar/releases/download/v${pkgver}/python-progressbar-v${pkgver}.tar.xz.asc";)
+sha512sums=('8720dc56a74045e9e658787ebe19872a1077ba0edff6b56c70a6e87a1452cb54f795c726fa6c50b12676ac3b147c08aa49794b7d329ec383ca325863c9422ed8'
+            'SKIP')
+validpgpkeys=('149325FD15904E9C4EB89E95E81444E9CE1F695D') # Rick van Hattem 
<wo...@wol.ph>
+
+prepare() {
+    cp -a "${srcdir}/${_pkgname}-v${pkgver}"{,-py2}
+}
+
+build() {
+    cd "${srcdir}/${_pkgname}-v${pkgver}"
+    python setup.py build
+
+    cd "${srcdir}/${_pkgname}-v${pkgver}-py2"
+    python2 setup.py build
+}
+
+package_python-progressbar() {
+    depends=('python' 'python-utils')
+
+    cd "${srcdir}/${_pkgname}-v${pkgver}"
+    python setup.py install --skip-build --root="${pkgdir}" --optimize=1
+    install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-progressbar() {
+    depends=('python2' 'python2-utils')
+
+    cd "${srcdir}/${_pkgname}-v${pkgver}-py2"
+    python2 setup.py install --skip-build --root="${pkgdir}" --optimize=1
+    install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}

Reply via email to