summaryrefslogtreecommitdiffstats
path: root/testing/py-weasyprint/APKBUILD
blob: cfee5541527cbb8d275f25454d811fcca3e786ac (plain)
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
35
36
37
38
39
40
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=py-weasyprint
pkgver=0.19.2
pkgrel=0
pkgdesc="cairo-based HTML renderer for python"
url="http://weasyprint.org"
arch="noarch"
license="LGPL"
depends="python pango cairo py-cairocffi py-cairosvg py-cssselect py-tinycss py-pyphen py-lxml"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="http://pypi.python.org/packages/source/W/WeasyPrint/WeasyPrint-$pkgver.tar.gz"

_builddir="$srcdir"/WeasyPrint-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="75f1de2cf4677c53c5bff1adb23033ec  WeasyPrint-0.19.2.tar.gz"
sha256sums="63fa62b40a5bd3a1f14887950f6f40d73fff752507cd41f0040606b3d5399ba4  WeasyPrint-0.19.2.tar.gz"
sha512sums="c491ec6788b164857265f11391148d761a737a47045288258f5584b277d58075e49384a9c0fa93ab849adbc1672684518039e2cc7bcf76b684dbab196f666166  WeasyPrint-0.19.2.tar.gz"