mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-14 12:21:47 +01:00
41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
# 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"
|