archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-cycler / trunk / PKGBUILD
blob6780a8964b8a4e1ff35820fd502b0f7ca515f5f7
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-cycler
4 pkgver=0.11.0
5 pkgrel=3
6 pkgdesc="Composable style cycles"
7 arch=('any')
8 license=('BSD')
9 url="https://github.com/matplotlib/cycler"
10 depends=('python-six')
11 makedepends=('python-setuptools')
12 checkdepends=('python-pytest')
13 source=("https://github.com/matplotlib/cycler/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
14 sha512sums=('cdf91b861d20710b3d77ad105e54668fafa4be69e566d6a09683c638a35aa423b542a141ca0bbffd7a6cd30c8e2a629d578be88648ab9f38a0c43405f2f39613')
16 build() {
17   cd cycler-$pkgver
18   python setup.py build
21 check() {
22   cd cycler-$pkgver
23   pytest
26 package() {
27   cd cycler-$pkgver
28   python setup.py install --root="$pkgdir" --optimize=1
29   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/