[arch-commits] Commit in python-cairosvg/repos (2 files)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Wed Dec 1 16:07:42 UTC 2021
Date: Wednesday, December 1, 2021 @ 16:07:42
Author: foutrelis
Revision: 1060588
archrelease: copy trunk to community-staging-any
Added:
python-cairosvg/repos/community-staging-any/
python-cairosvg/repos/community-staging-any/PKGBUILD
(from rev 1060587, python-cairosvg/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: python-cairosvg/repos/community-staging-any/PKGBUILD (from rev 1060587, python-cairosvg/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-12-01 16:07:42 UTC (rev 1060588)
@@ -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.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-cairocffi' 'python-cssselect2' 'python-defusedxml' 'python-pillow' 'python-tinycss2')
+makedepends=('python-setuptools' 'python-pytest-runner')
+checkdepends=('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=('a2e397bd0847baa87de76c7b3c1db56924634ba0c3510e91dafc4ab4f74850b7cd54683298d315dc1ff644f9b674ba20e03d7b3a17575a9d7e7c0c432845b05e')
+
+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