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

Felix Yan felixonmars at archlinux.org
Mon Jun 5 14:04:07 UTC 2017


    Date: Monday, June 5, 2017 @ 14:04:07
  Author: felixonmars
Revision: 234198

archrelease: copy trunk to community-any

Added:
  python-tqdm/repos/community-any/
  python-tqdm/repos/community-any/PKGBUILD
    (from rev 234197, python-tqdm/trunk/PKGBUILD)

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

Copied: python-tqdm/repos/community-any/PKGBUILD (from rev 234197, python-tqdm/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2017-06-05 14:04:07 UTC (rev 234198)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-tqdm
+pkgname=('python-tqdm' 'python2-tqdm')
+pkgver=4.14.0
+pkgrel=1
+pkgdesc='Fast, Extensible Progress Meter'
+arch=('any')
+license=('MIT' 'MPL')
+url='https://github.com/tqdm/tqdm'
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-nose' 'python2-nose' 'python-coverage' 'python2-coverage' 'flake8'
+              'python2-flake8')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/tqdm/tqdm/archive/v$pkgver.tar.gz")
+sha512sums=('ec38807596900edb665eaec3ca3ec61bab35fe1275fdb14a632d37d7b10d821a4c085540f6497ea9f6d29fa90ff5db9671df1853c844a083e7b1a76dbee6625c')
+
+prepare() {
+  cp -a tqdm-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/tqdm-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/tqdm-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/tqdm-$pkgver
+  python setup.py nosetests
+
+  cd "$srcdir"/tqdm-$pkgver-py2
+  python2 setup.py nosetests
+}
+
+package_python-tqdm() {
+  depends=('python')
+
+  cd tqdm-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENCE "$pkgdir"/usr/share/licenses/$pkgname/LICENCE
+}
+
+package_python2-tqdm() {
+  depends=('python2')
+
+  cd tqdm-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENCE "$pkgdir"/usr/share/licenses/$pkgname/LICENCE
+
+  mv "$pkgdir"/usr/bin/tqdm{,2}
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list