aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-cairocffi/APKBUILD
blob: 503852867892226dacf3571efc3697f63c7fad1b (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:
pkgname=py-cairocffi
pkgver=0.7.2
pkgrel=0
pkgdesc="Python CFFI-based binding to Cairo and GDK-PixBuf"
url="http://pythonhosted.org/cairocffi/"
arch="noarch"
license="BSD"
depends="python py-cffi cairo gdk-pixbuf"
depends_dev=""
makedepends="python2-dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/c/cairocffi/cairocffi-$pkgver.tar.gz"

_builddir="$srcdir"/cairocffi-$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="b7b6a5908f4180deee84f07bcc14253d  cairocffi-0.7.2.tar.gz"
sha256sums="e42b4256d27bd960cbf3b91a6c55d602defcdbc2a73f7317849c80279feeb975  cairocffi-0.7.2.tar.gz"
sha512sums="a4b5798ee713a8847ebd21ef328b3e0a94403ce1e80ac108f6d8e4abffbf96551542bb5c848550d82bcebb3d9f645c90ea87fc3eb254bd8e9d57b6a55db76de1  cairocffi-0.7.2.tar.gz"