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

Evangelos Foutras foutrelis at archlinux.org
Sat Oct 26 06:15:56 UTC 2019


    Date: Saturday, October 26, 2019 @ 06:15:56
  Author: foutrelis
Revision: 520243

archrelease: copy trunk to community-staging-any

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

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

Copied: python-cairosvg/repos/community-staging-any/PKGBUILD (from rev 520242, python-cairosvg/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-26 06:15:56 UTC (rev 520243)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+pkgname=python-cairosvg
+_pkgname=CairoSVG
+pkgver=2.4.2
+pkgrel=2
+pkgdesc='SVG converter based on Cairo. It can export SVG files to PDF, PostScript and PNG files'
+arch=('any')
+url='https://cairosvg.org'
+license=('LGPL3')
+depends=('python' 'python-setuptools' 'python-cairocffi' 'python-pillow' 'python-cssselect2' 'python-defusedxml' 'python-tinycss2')
+checkdepends=('python-pytest-runner' 'python-pytest-cov' 'python-pytest-flake8' 'python-pytest-isort')
+replaces=('cairosvg')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/Kozea/CairoSVG/archive/$pkgver.tar.gz")
+sha512sums=('b491e8aae0ebec55ad27a55d083954f715d668ca74eccc18d19ad53072143f7a05a11d979884464422a1bc0d90e9bed7a57e6a2df620a80134bb4b894124151a')
+
+prepare() {
+  cd $_pkgname-$pkgver
+
+  cp -r cairosvg test_non_regression/cairosvg_reference/
+}
+
+build() {
+  cd $_pkgname-$pkgver
+
+  python setup.py build
+}
+
+check() {
+  cd $_pkgname-$pkgver
+
+  python setup.py pytest
+}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
+



More information about the arch-commits mailing list