New package: python-tqdm-4.28.1

This commit is contained in:
bra1nwave 2018-12-10 10:52:08 +01:00 committed by maxice8
parent 609480add7
commit 2225d17400
No known key found for this signature in database
GPG Key ID: 543B9D4F4299F06B
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,42 @@
# Template file for 'python-tqdm'
pkgname=python-tqdm
version=4.28.1
revision=1
noarch=yes
wrksrc="tqdm-${version}"
build_style=python-module
pycompile_module="tqdm"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Fast, extensible progress bar for Python and CLI (Python2)"
maintainer="bra1nwave <brainwave@openmailbox.org>"
license="MPL-2.0, MIT"
homepage="https://tqdm.github.io/"
distfiles="https://github.com/tqdm/tqdm/archive/v${version}.tar.gz"
checksum=3a405bcf0b4f30c72d2f7d10f7574d952b837abb5777dc2ed0f0a57a8943d171
alternatives="
tqdm:tqdm:/usr/bin/tqdm2
tqdm:tqdm.1:/usr/share/man/man1/tqdm2.1"
post_install() {
rm -f ${DESTDIR}/${py2_sitelib}/tqdm/tqdm.1
vman tqdm/tqdm.1 tqdm2.1
vlicense LICENCE
}
python3-tqdm_package() {
alternatives="
tqdm:tqdm:/usr/bin/tqdm3
tqdm:tqdm.1:/usr/share/man/man1/tqdm3.1"
noarch=yes
pycompile_module="tqdm"
depends="python3"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
rm -f ${DESTDIR}/${py3_sitelib}/tqdm/tqdm.1
vman tqdm/tqdm.1 tqdm3.1
vmove "usr/lib/python3*"
vmove usr/bin/tqdm3
vlicense LICENCE
}
}

1
srcpkgs/python3-tqdm Symbolic link
View File

@ -0,0 +1 @@
python-tqdm