Date: Friday, November 25, 2016 @ 05:18:02
Author: felixonmars
Revision: 196827
archrelease: copy trunk to community-testing-any
Added:
python-cairosvg/repos/community-testing-any/
python-cairosvg/repos/community-testing-any/PKGBUILD
(from rev 196826, python-cairosvg/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: python-cairosvg/repos/community-testing-any/PKGBUILD (from rev 196826,
python-cairosvg/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2016-11-25 05:18:02 UTC (rev 196827)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: razer <razer[at]neuf[dot]fr>
+# Contributor: pzl <[email protected]>
+# Contributor: Dennis Fink <[email protected]>
+# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
+
+pkgname=python-cairosvg
+pkgver=2.0.0
+pkgrel=1
+pkgdesc="A Simple SVG Converter for Cairo"
+arch=('any')
+url="http://cairosvg.org/"
+license=('LGPL3')
+depends=('python-cairocffi' 'python-lxml' 'python-tinycss' 'python-cssselect'
'python-pillow')
+makedepends=('git')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner'
'python-pytest-isort'
+ 'python2-pytest-isort' 'python-pytest-flake8'
'python2-pytest-flake8'
+ 'python-pytest-cov' 'python2-pytest-cov' 'gnu-free-fonts')
+source=("git+https://github.com/Kozea/CairoSVG.git#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+ cd CairoSVG
+ git submodule update --init
+}
+
+build() {
+ cd CairoSVG
+ python setup.py build
+}
+
+check() {
+ cd CairoSVG
+ python setup.py test || warning "Tests failed"
+ # Tests require special fonts that are not in the repos
+}
+
+package() {
+ cd CairoSVG
+ python setup.py install --root="$pkgdir/" --optimize=1
+}