[arch-commits] Commit in python-cairosvg/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Fri Oct 6 06:56:20 UTC 2017
Date: Friday, October 6, 2017 @ 06:56:19
Author: felixonmars
Revision: 261842
upgpkg: python-cairosvg 2.1.1-1
Modified:
python-cairosvg/trunk/PKGBUILD
----------+
PKGBUILD | 26 ++++++++++++++------------
1 file changed, 14 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-10-06 06:52:49 UTC (rev 261841)
+++ PKGBUILD 2017-10-06 06:56:19 UTC (rev 261842)
@@ -6,36 +6,38 @@
# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
pkgname=python-cairosvg
-pkgver=2.0.3
+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-lxml' 'python-tinycss' 'python-cssselect' 'python-pillow')
-makedepends=('git')
+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' 'gnu-free-fonts')
-source=("git+https://github.com/Kozea/CairoSVG.git#tag=$pkgver")
-sha512sums=('SKIP')
+ '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
- git submodule update --init
+ cd CairoSVG-$pkgver
+ rmdir test/cairosvg_reference
+ cp -a "$srcdir"/CairoSVG-$pkgver{,-copy}
+ mv "$srcdir"/CairoSVG-$pkgver-copy test/cairosvg_reference
}
build() {
- cd CairoSVG
+ cd CairoSVG-$pkgver
python setup.py build
}
check() {
- cd CairoSVG
+ cd CairoSVG-$pkgver
python setup.py test
}
package() {
- cd CairoSVG
- python setup.py install --root="$pkgdir/" --optimize=1
+ cd CairoSVG-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
}
More information about the arch-commits
mailing list