[arch-commits] Commit in python-cycler/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Oct 25 15:19:30 UTC 2019
Date: Friday, October 25, 2019 @ 15:19:30
Author: felixonmars
Revision: 518975
archrelease: copy trunk to community-staging-any
Added:
python-cycler/repos/community-staging-any/
python-cycler/repos/community-staging-any/PKGBUILD
(from rev 518974, python-cycler/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: python-cycler/repos/community-staging-any/PKGBUILD (from rev 518974, python-cycler/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 15:19:30 UTC (rev 518975)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-cycler
+pkgname=('python-cycler' 'python2-cycler')
+pkgver=0.10.0
+pkgrel=4
+pkgdesc="Composable style cycles"
+arch=('any')
+license=('BSD')
+url="https://github.com/matplotlib/cycler"
+makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six' 'git')
+checkdepends=('python-nose' 'python2-nose' 'python-coverage' 'python2-coverage')
+source=("git+https://github.com/matplotlib/cycler.git#tag=v$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+ cp -a cycler{,-py2}
+}
+
+build() {
+ cd "$srcdir/cycler"
+ python setup.py build
+
+ cd "$srcdir/cycler-py2"
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/cycler"
+ python run_tests.py
+
+ cd "$srcdir/cycler-py2"
+ python2 run_tests.py
+}
+
+package_python-cycler() {
+ depends=('python-six')
+
+ cd cycler
+ python 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-py2
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
More information about the arch-commits
mailing list