mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
40 lines
1007 B
Bash
40 lines
1007 B
Bash
pkgbase=python-cycler
|
|
pkgname=('python3-cycler' 'python2-cycler')
|
|
pkgver=0.10.0
|
|
pkgrel=1
|
|
pkgdesc="Composable style cycles"
|
|
arch=('any')
|
|
license=('BSD')
|
|
url="http://github.com/matplotlib/cycler"
|
|
makedepends=('python3-setuptools' 'python2-setuptools' 'python3-six' 'python2-six')
|
|
source=("https://github.com/matplotlib/cycler/archive/v$pkgver.tar.gz")
|
|
sha1sums=('c7591a281ddd0a30c542d04ea8ff671f1dc5503f')
|
|
|
|
prepare() {
|
|
cp -a cycler-$pkgver{,-py2}
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir/cycler-$pkgver"
|
|
python3 setup.py build
|
|
|
|
cd "$srcdir/cycler-$pkgver-py2"
|
|
python2 setup.py build
|
|
}
|
|
|
|
package_python3-cycler() {
|
|
depends=('python3-six')
|
|
|
|
cd cycler-$pkgver
|
|
python3 setup.py install --root="${pkgdir}" --optimize=1
|
|
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
}
|
|
|
|
package_python2-cycler() {
|
|
depends=('python2-six')
|
|
|
|
cd cycler-$pkgver-py2
|
|
python2 setup.py install --root="${pkgdir}" --optimize=1
|
|
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
}
|