2019-06-13 13:53:42 +00:00
|
|
|
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
|
|
|
# Maintainer: Filipe Laíns (FFY00) <lains@archlinux.org>
|
|
|
|
|
2020-04-26 01:44:06 +00:00
|
|
|
# remove when bumped upstream
|
2019-06-13 13:53:42 +00:00
|
|
|
|
|
|
|
pkgname=python-cairosvg
|
|
|
|
_pkgname=CairoSVG
|
2019-09-23 13:39:37 +00:00
|
|
|
pkgver=2.4.2
|
2020-04-26 01:44:06 +00:00
|
|
|
pkgrel=3.1
|
2019-06-13 13:53:42 +00:00
|
|
|
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')
|
2020-04-26 01:44:06 +00:00
|
|
|
depends=('python' 'python-setuptools' 'python-cairocffi' 'python-pillow' 'python-cssselect2' 'python-defusedxml' 'python-tinycss2')
|
2019-06-13 13:53:42 +00:00
|
|
|
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")
|
2019-09-23 13:39:37 +00:00
|
|
|
sha512sums=('b491e8aae0ebec55ad27a55d083954f715d668ca74eccc18d19ad53072143f7a05a11d979884464422a1bc0d90e9bed7a57e6a2df620a80134bb4b894124151a')
|
2019-06-13 13:53:42 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|