summaryrefslogtreecommitdiffstats
path: root/testing/py-cairocffi/APKBUILD
blob: bb7b3754e9c1fd806f3986b449a01c75834a5c40 (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:
pkgname=py-cairocffi
pkgver=0.5.1
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="python-dev py-setuptools"
install=""
subpackages=""
source="https://pypi.python.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="a0c55240b07030f27d9fb07cf99bf705  cairocffi-0.5.1.tar.gz"
sha256sums="eb85249f03254f42ee298c20d5827fbab2b95128919203d0581c37d929e824ee  cairocffi-0.5.1.tar.gz"
sha512sums="e34a8c2c53c6fe29573293372b3fb952a8f5051d7c51125523fbbbcf0499b80ccc743713b6c6560d2ca74cfb96392810e7396320c6e70e55f01ff7663f921612  cairocffi-0.5.1.tar.gz"