[arch-commits] Commit in python-cairosvg/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Tue Nov 10 05:02:30 UTC 2020
Date: Tuesday, November 10, 2020 @ 05:02:30
Author: foutrelis
Revision: 749254
archrelease: copy trunk to community-staging-any
Added:
python-cairosvg/repos/community-staging-any/
python-cairosvg/repos/community-staging-any/PKGBUILD
(from rev 749253, python-cairosvg/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: python-cairosvg/repos/community-staging-any/PKGBUILD (from rev 749253, python-cairosvg/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-10 05:02:30 UTC (rev 749254)
@@ -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.5.0
+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-cairocffi' 'python-cssselect2' 'python-defusedxml' 'python-pillow' 'python-tinycss2')
+makedepends=('python-setuptools')
+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