mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-25 02:52:13 +08:00
38 lines
1.0 KiB
Bash
38 lines
1.0 KiB
Bash
pkgbase=tqdm
|
|
pkgname=(python3-${pkgbase} python2-${pkgbase})
|
|
pkgver=4.11.1
|
|
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=('3c0b564f552935154aef43e338c724c9d7c92b3e3c4d36f9d64ceae487986c43face53c98a6a053738536f257179c090c6c1426c82569a53657e9e7922dfcb4a')
|
|
|
|
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
|
|
}
|
|
|
|
package_python2-tqdm() {
|
|
depends=('python2')
|
|
cd "${srcdir}/${pkgbase}-${pkgver}-py2"
|
|
python2 setup.py install --root="${pkgdir}" --optimize=1
|
|
}
|
|
|