diff options
Diffstat (limited to 'user')
-rw-r--r-- | user/py3-weasyprint/APKBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/user/py3-weasyprint/APKBUILD b/user/py3-weasyprint/APKBUILD new file mode 100644 index 000000000..f0e501451 --- /dev/null +++ b/user/py3-weasyprint/APKBUILD @@ -0,0 +1,30 @@ +# Contributor: Kiyoshi Aman <adelie@aerdan.vulpine.house> +# Maintainer: Kiyoshi Aman <adelie@aerdan.vulpine.house> +pkgname=py3-weasyprint +_pkgname=WeasyPrint +_p="${_pkgname#?}" +_p="${_pkgname%"$_p"}" +pkgver=51 +pkgrel=0 +pkgdesc="HTML-to-PDF typesetting program and Python library" +url="https://weasyprint.org" +arch="noarch" +license="BSD-3-Clause" +depends="python3 cairo py3-cffi py3-html5lib py3-cairocffi py3-tinycss2 + py3-cssselect2 py3-cairosvg py3-pyphen gdk-pixbuf" +source="https://files.pythonhosted.org/packages/source/$_p/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir/WeasyPrint-$pkgver" + +build() { + python3 setup.py build +} + +check() { + python3 setup.py check +} + +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="631038bece7ac0c15c6a668a7d06137e4bccc049eb80484a153ca9c4a996256de8647428b21ed1d0c1607af3893c747a1956a3d3f012b30105ba4f8613a96fcd WeasyPrint-51.tar.gz" |