testing/py-tqdm: fix conflicting files, add version suffix

This commit is contained in:
Jakub Jirutka 2017-12-26 19:15:18 +01:00
parent 37f3ac9ad4
commit e309e699fd

View File

@ -2,7 +2,7 @@
pkgname=py-tqdm
_pkgname=tqdm
pkgver=4.19.5
pkgrel=0
pkgrel=1
pkgdesc="Fast, Extensible Progress Meter"
url="https://pypi.python.org/pypi/tqdm"
arch="noarch"
@ -39,17 +39,26 @@ check() {
}
package() {
mkdir -p "$pkgdir"
mkdir -p "$pkgdir"/usr/bin
ln -s tqdm-3 "$pkgdir"/usr/bin/tqdm
}
_py() {
local python="$1"
local pyver="${python:6:1}"
pkgdesc="$pkgdesc ($python)"
depends="$python"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"
$python setup.py install --prefix=/usr --root="$subpkgdir"
cd "$subpkgdir"
# Add version suffix to executable.
mv usr/bin/tqdm usr/bin/tqdm-$pyver
rm -r usr/man
}
_py2() {