mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
44 lines
1.2 KiB
Bash
44 lines
1.2 KiB
Bash
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
|
# Maintainer: Filipe Laíns (FFY00) <lains@archlinux.org>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - depend on python-cairo instead of python-cairocffi (haskell deps)
|
|
|
|
pkgname=python-cairosvg
|
|
_pkgname=CairoSVG
|
|
pkgver=2.4.1
|
|
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' 'python-setuptools' 'python-cairo' 'python-pillow' 'python-cssselect2' 'python-defusedxml' '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=('21dddd87c191b5467a5f77178e896d4ea87fda63b437284b68c3edd19af70ac0e41f13c398125021bacaa3358c48446c908eec052d9e25d6142d5acdd124d28e')
|
|
|
|
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
|
|
}
|
|
|