mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 05:17:07 +02:00
testing/py-tqdm: fix conflicting files, add version suffix
This commit is contained in:
parent
37f3ac9ad4
commit
e309e699fd
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user