summaryrefslogtreecommitdiffstats
path: root/testing/py-flask-weasyprint/APKBUILD
blob: 25082a25f5ab3852148f2f513d93071962ef1d8e (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-flask-weasyprint
pkgver=0.4
pkgrel=0
pkgdesc="flask binding to py-weasyprint"
url="http://pythonhosted.org/flask-weasyprint"
arch="noarch"
license="BSD"
depends="python py-weasyprint py-flask py-setuptools"
depends_dev=""
makedepends="python-dev"
install=""
subpackages=""
source="http://pypi.python.org/packages/source/F/Flask-WeasyPrint/Flask-WeasyPrint-$pkgver.tar.gz"

_builddir="$srcdir"/Flask-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="6d24da2c30f7d3feebc43f5081670884  Flask-WeasyPrint-0.4.tar.gz"
sha256sums="ae586c52d1b465eb196fd187d52c7a09ebb6519f9db749d7082c12d1844b78dc  Flask-WeasyPrint-0.4.tar.gz"
sha512sums="941997a553f9154fcea3d4e35e2cd3ab7d5e8b19dad91ed7fb7bbad1e413d9060b272a9e452ddb42a4d698fbcc43673323ede27dc998d8a4067b52ae0a74fca7  Flask-WeasyPrint-0.4.tar.gz"