aboutsummaryrefslogtreecommitdiffstats
path: root/main/py2-cairo/APKBUILD
blob: e922ff6aec5f8bd597e41eb2d3c437d907169dc9 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py2-cairo
_pkgname=py2cairo
pkgver=1.10.0
pkgrel=0
pkgdesc="Python bindings for the cairo graphics library"
url="http://cairographics.org/pycairo/"
arch="all"
license="LGPL2+"
options="!check"
depends=""
makedepends="python2-dev cairo-dev"
replaces=py-cairo
install=""
subpackages="$pkgname-dev"
source="http://cairographics.org/releases/$_pkgname-$pkgver.tar.bz2"

builddir="$srcdir"/$_pkgname-$pkgver

build() {
	cd "$builddir"
	./waf configure --prefix=/usr || return 1
	./waf build || return 1
}

package() {
	cd "$builddir"
	./waf install --destdir="${pkgdir}" || return 1
}

md5sums="20337132c4ab06c1146ad384d55372c5  py2cairo-1.10.0.tar.bz2"