[arch-commits] Commit in python-cairosvg/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Dec 24 18:35:01 UTC 2016
Date: Saturday, December 24, 2016 @ 18:35:00
Author: foutrelis
Revision: 201762
archrelease: copy trunk to community-staging-any
Added:
python-cairosvg/repos/community-staging-any/
python-cairosvg/repos/community-staging-any/PKGBUILD
(from rev 201761, python-cairosvg/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: python-cairosvg/repos/community-staging-any/PKGBUILD (from rev 201761, python-cairosvg/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2016-12-24 18:35:00 UTC (rev 201762)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: razer <razer[at]neuf[dot]fr>
+# Contributor: pzl <alsoelp at gmail.com>
+# Contributor: Dennis Fink <dennis.fink at c3l.lu>
+# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
+
+pkgname=python-cairosvg
+pkgver=2.0.0
+pkgrel=2
+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
+}
More information about the arch-commits
mailing list