Date: Wednesday, October 4, 2017 @ 15:25:08 Author: felixonmars Revision: 261483
archrelease: copy trunk to community-any Added: python-tqdm/repos/community-any/PKGBUILD (from rev 261481, python-tqdm/trunk/PKGBUILD) Deleted: python-tqdm/repos/community-any/PKGBUILD ----------+ PKGBUILD | 116 +++++++++++++++++++++++++++++++------------------------------ 1 file changed, 60 insertions(+), 56 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2017-10-04 15:25:03 UTC (rev 261482) +++ PKGBUILD 2017-10-04 15:25:08 UTC (rev 261483) @@ -1,56 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgbase=python-tqdm -pkgname=('python-tqdm' 'python2-tqdm') -pkgver=4.19.1 -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=('27791edcea42312b0c89e8596ba58c2aebecc30b251947fde3fa0bbd708b155091aaa4c3cc7317620500900cb57654218aeb263a86ff413b2db80da731ee1613') - -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 --ignore-files="tests_perf\.py" - - cd "$srcdir"/tqdm-$pkgver-py2 - python2 setup.py nosetests --ignore-files="tests_perf\.py" -} - -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: Copied: python-tqdm/repos/community-any/PKGBUILD (from rev 261481, python-tqdm/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2017-10-04 15:25:08 UTC (rev 261483) @@ -0,0 +1,60 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-tqdm +pkgname=('python-tqdm' 'python2-tqdm') +pkgver=4.19.1 +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=('27791edcea42312b0c89e8596ba58c2aebecc30b251947fde3fa0bbd708b155091aaa4c3cc7317620500900cb57654218aeb263a86ff413b2db80da731ee1613') + +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 --ignore-files="tests_perf\.py" + + cd "$srcdir"/tqdm-$pkgver-py2 + python2 setup.py nosetests --ignore-files="tests_perf\.py" +} + +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 + + mv "$pkgdir"/usr/{,share/}man +} + +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} + mv "$pkgdir"/usr/{,share/}man + mv "$pkgdir"/usr/share/man/man1/tqdm{,2}.1 +} + +# vim:set ts=2 sw=2 et: