blob: 6c3d90eee5acbbece4161a4ed5b9a121daf26f10 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Contributor: Isaac Dunham <ibid.ag@gmail.com>
# Maintainer: Isaac Dunham <ibid.ag@gmail.com>
pkgname=py-cycler
_pkgname=cycler
pkgver=0.10.0
pkgrel=1
pkgdesc="Composable style cycles in Python"
url="http://matplotlib.org/cycler/"
arch="noarch"
license="BSD"
depends=""
depends_dev=""
makedepends="python2-dev python3-dev py-setuptools"
install=""
subpackages="py2-$_pkgname:_py2 py3-$_pkgname:_py3"
source="https://files.pythonhosted.org/packages/source/C/Cycler/$_pkgname-$pkgver.tar.gz"
builddir="${srcdir}/${_pkgname}-$pkgver"
build() {
cd "$builddir" || return 1
python2 setup.py build || return 1
python3 setup.py build || return 1
}
package() {
mkdir -p "$pkgdir"
}
_py2() {
replaces="$pkgname"
_py python2
}
_py3() {
_py python3
}
_py() {
local python="$1"
pkgdesc="$pkgdesc (for $python)"
depends="$depends $python"
cd "$builddir"
$python setup.py install --prefix=/usr --root="$subpkgdir" || return 1
}
md5sums="4cb42917ac5007d1cdff6cccfe2d016b cycler-0.10.0.tar.gz"
sha256sums="cd7b2d1018258d7247a71425e9f26463dfb444d411c39569972f4ce586b0c9d8 cycler-0.10.0.tar.gz"
sha512sums="b7d2ba19861ffaf4dea0444bfe68b5a6264a022d7b3f02c9ff5e5859e3901de12a90f8dc7469e995e09c418515b3df55dbf05a0cfe5368d40790a2c878a74819 cycler-0.10.0.tar.gz"
|