[arch-commits] Commit in python-cairosvg/repos (2 files)

Felix Yan felixonmars at archlinux.org
Fri Oct 6 06:56:38 UTC 2017


    Date: Friday, October 6, 2017 @ 06:56:37
  Author: felixonmars
Revision: 261843

archrelease: copy trunk to community-testing-any

Added:
  python-cairosvg/repos/community-testing-any/
  python-cairosvg/repos/community-testing-any/PKGBUILD
    (from rev 261842, python-cairosvg/trunk/PKGBUILD)

----------+
 PKGBUILD |   43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

Copied: python-cairosvg/repos/community-testing-any/PKGBUILD (from rev 261842, python-cairosvg/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2017-10-06 06:56:37 UTC (rev 261843)
@@ -0,0 +1,43 @@
+# $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.1.1
+pkgrel=1
+pkgdesc="A Simple SVG Converter for Cairo"
+arch=('any')
+url="http://cairosvg.org/"
+license=('LGPL3')
+depends=('python-cairocffi' 'python-cssselect2' 'python-defusedxml' 'python-pillow'
+         'python-tinycss2')
+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')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/Kozea/CairoSVG/archive/$pkgver.tar.gz")
+sha512sums=('ca70cfc43c5fc1e57ef07074f03ca6606a86e6fca2322fcd684c70fa977169196be30fd16f1cd656183fd69e73f8063ecbd244b00a85f6f3fe22c1496708f4b4')
+
+prepare() {
+  cd CairoSVG-$pkgver
+  rmdir test/cairosvg_reference
+  cp -a "$srcdir"/CairoSVG-$pkgver{,-copy}
+  mv "$srcdir"/CairoSVG-$pkgver-copy test/cairosvg_reference
+}
+
+build() {
+  cd CairoSVG-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd CairoSVG-$pkgver
+  python setup.py test
+}
+
+package() {
+  cd CairoSVG-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list