41 lines
1.1 KiB
Bash
41 lines
1.1 KiB
Bash
# Template file for 'python-tqdm'
|
|
pkgname=python-tqdm
|
|
version=4.47.0
|
|
revision=1
|
|
archs=noarch
|
|
wrksrc="tqdm-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-setuptools"
|
|
short_desc="Fast, extensible progress bar for Python and CLI (Python2)"
|
|
maintainer="bra1nwave <bra1nwave@protonmail.com>"
|
|
license="MPL-2.0, MIT"
|
|
homepage="https://tqdm.github.io/"
|
|
distfiles="https://github.com/tqdm/tqdm/archive/v${version}.tar.gz"
|
|
checksum=f45d4b766a0fbae4f93156d57a0b4e7aef510b2fd483b6a265ac6ff9e6cc0c4a
|
|
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"
|
|
archs=noarch
|
|
depends="python3-setuptools"
|
|
short_desc="${short_desc/2/3}"
|
|
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
|
|
}
|
|
}
|