[arch-commits] Commit in python-pygal/repos (2 files)
Bartłomiej Piotrowski
bpiotrowski at archlinux.org
Sun Dec 25 05:50:41 UTC 2016
Date: Sunday, December 25, 2016 @ 05:50:40
Author: bpiotrowski
Revision: 201839
archrelease: copy trunk to community-staging-any
Added:
python-pygal/repos/community-staging-any/
python-pygal/repos/community-staging-any/PKGBUILD
(from rev 201838, python-pygal/trunk/PKGBUILD)
----------+
PKGBUILD | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 59 insertions(+)
Copied: python-pygal/repos/community-staging-any/PKGBUILD (from rev 201838, python-pygal/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2016-12-25 05:50:40 UTC (rev 201839)
@@ -0,0 +1,59 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Chris Warrick <aur at chriswarrick.com>
+
+pkgbase=python-pygal
+pkgname=('python-pygal' 'python2-pygal')
+epoch=1
+pkgver=2.3.1
+pkgrel=2
+pkgdesc='A Python SVG graph plotting library'
+arch=('any')
+url='http://pygal.org/'
+license=('LGPL3')
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+checkdepends=('python-pytest' 'python2-pytest' 'python-lxml' 'python2-lxml'
+ 'python-pyquery' 'python2-pyquery' 'python-cairosvg' 'python-flask' 'python2-flask')
+source=("git+https://github.com/Kozea/pygal.git#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+ cp -a "$srcdir/pygal"{,-py2}
+}
+
+build() {
+ cd "$srcdir"/pygal
+ python setup.py build
+
+ cd "$srcdir"/pygal-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/pygal
+ LC_CTYPE=en_US.UTF-8 py.test pygal/
+
+ cd "$srcdir"/pygal-py2
+ py.test2 pygal/
+}
+
+package_python-pygal() {
+ depends=('python-setuptools')
+ optdepends=('python-lxml: for XML output through lxml instead of xml.etree'
+ 'python-cairosvg: for PNG output')
+
+ cd pygal
+ python3 setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-pygal() {
+ depends=('python2-setuptools')
+ optdepends=('python2-lxml: for XML output through lxml instead of xml.etree')
+
+ cd pygal-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+
+ mv "$pkgdir"/usr/bin/pygal_gen{,2}.py
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list