~dricottone/huttese-apk

ref: e83047e8f4cd75402178d806c056f45c3d63f7b6 huttese-apk/sr.ht/py3-weasyprint/APKBUILD -rw-r--r-- 950 bytes
e83047e8 — Drew DeVault py3-celery: upgrade to 5.0.2 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-weasyprint
_pyname=WeasyPrint
pkgver=52
pkgrel=0
pkgdesc="cairo-based HTML renderer for python"
url="https://weasyprint.org"
arch="noarch"
license="BSD-3-Clause"
depends="
	pango cairo py3-cairocffi py3-cairosvg py3-cssselect2 py3-tinycss2 py3-pyphen
	py3-lxml py3-pdfrw
"
makedepends="py3-setuptools"
_pypiprefix="${_pyname%${_pyname#?}}"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver

replaces="py-weasyprint" # Backwards compat
provides="py-weasyprint=$pkgver-r$pkgrel" # Backwards compat

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="dae2af31cb629ae4702ebe454fc0b1e128b8e96c1192dd8423bb4822e29a420105cbd0a88389edf4d37a4c7d5aeb75bc9c1271fd30d6f183432abde041b6ce87  WeasyPrint-52.tar.gz"