mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +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=py-tqdm
|
||||||
_pkgname=tqdm
|
_pkgname=tqdm
|
||||||
pkgver=4.19.5
|
pkgver=4.19.5
|
||||||
pkgrel=0
|
pkgrel=1
|
||||||
pkgdesc="Fast, Extensible Progress Meter"
|
pkgdesc="Fast, Extensible Progress Meter"
|
||||||
url="https://pypi.python.org/pypi/tqdm"
|
url="https://pypi.python.org/pypi/tqdm"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
@ -39,17 +39,26 @@ check() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
mkdir -p "$pkgdir"
|
mkdir -p "$pkgdir"/usr/bin
|
||||||
|
ln -s tqdm-3 "$pkgdir"/usr/bin/tqdm
|
||||||
}
|
}
|
||||||
|
|
||||||
_py() {
|
_py() {
|
||||||
local python="$1"
|
local python="$1"
|
||||||
|
local pyver="${python:6:1}"
|
||||||
pkgdesc="$pkgdesc ($python)"
|
pkgdesc="$pkgdesc ($python)"
|
||||||
depends="$python"
|
depends="$python"
|
||||||
install_if="$pkgname=$pkgver-r$pkgrel $python"
|
install_if="$pkgname=$pkgver-r$pkgrel $python"
|
||||||
|
|
||||||
cd "$builddir"
|
cd "$builddir"
|
||||||
$python setup.py install --prefix=/usr --root="$subpkgdir"
|
$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() {
|
_py2() {
|
||||||
|
Loading…
Reference in New Issue
Block a user