[arch-commits] Commit in (4 files)
Felix Yan
felixonmars at archlinux.org
Mon Jun 5 14:03:28 UTC 2017
Date: Monday, June 5, 2017 @ 14:03:27
Author: felixonmars
Revision: 234197
addpkg: python-tqdm 4.14.0-1
Added:
python-tqdm/
python-tqdm/repos/
python-tqdm/trunk/
python-tqdm/trunk/PKGBUILD
----------+
PKGBUILD | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
Added: python-tqdm/trunk/PKGBUILD
===================================================================
--- python-tqdm/trunk/PKGBUILD (rev 0)
+++ python-tqdm/trunk/PKGBUILD 2017-06-05 14:03:27 UTC (rev 234197)
@@ -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:
Property changes on: python-tqdm/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list