mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
41 lines
1.1 KiB
Bash
41 lines
1.1 KiB
Bash
pkgbase=tqdm
|
|
pkgname=(python3-${pkgbase} python2-${pkgbase})
|
|
pkgver=4.11.2
|
|
pkgrel=1
|
|
pkgdesc="Simple Python Progress Meter"
|
|
arch=('any')
|
|
url="https://pypi.python.org/pypi/tqdm"
|
|
license=('MIT')
|
|
makedepends=('python3-setuptools' 'python2-setuptools' 'python2' 'python3')
|
|
options=('!emptydirs')
|
|
source=(https://github.com/tqdm/tqdm/archive/v$pkgver.tar.gz)
|
|
sha512sums=('9375e03a25dea65193c9bc1add952486625e1087e2ce6bd7adc4ddc98a1b9898595130a2c81c253d5566cd323f11ee48067a46ca3f16828ed6c000f0bc1a022a')
|
|
|
|
prepare() {
|
|
cp -a "${srcdir}/${pkgbase}-${pkgver}"{,-py2}
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
|
python3 setup.py build
|
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}-py2"
|
|
python2 setup.py build
|
|
}
|
|
|
|
package_python3-tqdm() {
|
|
depends=('python3')
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
|
python3 setup.py install --root="${pkgdir}" --optimize=1
|
|
mv "$pkgdir"/usr/bin/tqdm{,-python3}
|
|
}
|
|
|
|
package_python2-tqdm() {
|
|
depends=('python2')
|
|
cd "${srcdir}/${pkgbase}-${pkgver}-py2"
|
|
python2 setup.py install --root="${pkgdir}" --optimize=1
|
|
mv "$pkgdir"/usr/bin/tqdm{,-python2}
|
|
ln -s tqdm-python2 "$pkgdir"/usr/bin/tqdm
|
|
}
|
|
|