void-packages/srcpkgs/python-tqdm/template

43 lines
1.1 KiB
Bash
Raw Normal View History

2018-12-10 09:52:08 +00:00
# Template file for 'python-tqdm'
pkgname=python-tqdm
2019-01-18 09:36:46 +00:00
version=4.29.1
2018-12-10 09:52:08 +00:00
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"
2019-01-18 09:36:46 +00:00
checksum=42e436ca4fcf079d66a9517b20be310b5242bd74bb579a3c3a41e3da78efd3fc
2018-12-10 09:52:08 +00:00
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
}
}