aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-flask-weasyprint/APKBUILD
blob: 7e9e602d59e585998bf2fb86223ac9b2cce8e953 (plain) (blame)
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="python2-dev"
install=""
subpackages=""
source="https://files.pythonhosted.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"