# Contributor: Kiyoshi Aman # Maintainer: Kiyoshi Aman pkgname=py3-cairosvg _pkgname=CairoSVG _p="${_pkgname#?}" _p="${_pkgname%"$_p"}" pkgver=2.4.2 pkgrel=0 pkgdesc="Cairo-based SVG to PDF/PNG library for Python" url="https://cairosvg.org/" arch="all" license="LGPL-3.0+" depends="python3 cairo" makedepends="python3-dev cairo-dev libffi-dev" source="https://files.pythonhosted.org/packages/source/$_p/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/CairoSVG-$pkgver" build() { python3 setup.py build } check() { python3 setup.py check } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="0d6dd22d9569fd3849cf7f6594c86bed719169dac1f0f3219e88d82f9d245bf29d51715159085cb26c0340c8f0dcb88412d141ec0ee3710b1477626f5a578441 CairoSVG-2.4.2.tar.gz"