aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-cairosvg/APKBUILD
blob: 392d81b698c82ba7406c94b0f82d3b0b2f9c80ac (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-cairosvg
pkgver=0.5
pkgrel=0
pkgdesc="Cairo-based SVG renderer for python"
url="http://cairosvg.org"
arch="noarch"
license="LGPL3+"
depends="python py-cairocffi"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="http://pypi.python.org/packages/source/C/CairoSVG/CairoSVG-$pkgver.tar.gz"

_builddir="$srcdir"/CairoSVG-$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="6c092cce2b2ade47054aea6657173cbf  CairoSVG-0.5.tar.gz"
sha256sums="9aa311fb832c37bf376a4bbcf0b97beddc4527e4fbd918cdd35d42bc3200e170  CairoSVG-0.5.tar.gz"
sha512sums="039db314effeeeb2bfae1ad47f8505742fcc160804e8f029a4f3568fbc3e9b802e785ae2cf4ec63d6dee6d4730676fa48c1d8915423ec60e5855540eaac17572  CairoSVG-0.5.tar.gz"