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

Felix Yan felixonmars at archlinux.org
Mon Nov 2 07:10:12 UTC 2020


    Date: Monday, November 2, 2020 @ 07:10:12
  Author: felixonmars
Revision: 739225

archrelease: copy trunk to community-testing-any

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

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

Copied: python-cairosvg/repos/community-testing-any/PKGBUILD (from rev 739224, python-cairosvg/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2020-11-02 07:10:12 UTC (rev 739225)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+pkgname=python-cairosvg
+_pkgname=CairoSVG
+pkgver=2.5.0
+pkgrel=1
+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-cairocffi' 'python-cssselect2' 'python-defusedxml' 'python-pillow' '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=('2749c27287f9adee61b8e894e0efb211e2d9eff9d672e62774ce4efed60138b72391d1c008fa72f855d802172dab7b9e54d4ae7e8d32e9a550fa7afc885cb728')
+
+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