blob: 6d57f03f5d41e823700d51e298dca2e871acd080 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Maintainer: Chris Warrick <aur@chriswarrick.com>
pkgbase=python-kwpbar
pkgname=('python-kwpbar' 'python2-kwpbar')
_pyname=kwpbar
pkgver=0.2.1
pkgrel=1
pkgdesc='A progress bar for Python.'
arch=('any')
url='https://github.com/Kwpolska/kwpbar.py'
license=('BSD')
makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
md5sums=('55915ce000986ed1b771b317f9c57a4b')
prepare() {
cd "${srcdir}/${_pyname}-${pkgver}"
cp -r "${srcdir}/${_pyname}-${pkgver}" "${srcdir}/${_pyname}-${pkgver}-py2"
}
package_python-kwpbar() {
depends=('python' 'python-setuptools')
cd "${srcdir}/${_pyname}-${pkgver}"
python3 setup.py install --root="${pkgdir}/" --optimize=1
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgbase}/LICENSE"
}
package_python2-kwpbar() {
depends=('python2' 'python2-setuptools')
cd "${srcdir}/${_pyname}-${pkgver}-py2"
python2 setup.py install --root="${pkgdir}/" --optimize=1
}
# vim:set ts=2 sw=2 et:
|