blob: 5b16b8d2c80035c5df098e9a717dcff452c702ad (
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
41
|
# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer:
pkgname=pycairo
pkgver=1.10.0
pkgrel=0
pkgdesc="A set of Python bindings for the cairo graphics library"
url="http://cairographics.org/pycairo/"
arch="all"
license="MPL"
depends=""
depends_dev=""
makedepends="$depends_dev python-dev cairo-dev"
install=""
subpackages="$pkgname-dev"
source="http://cairographics.org/releases/py2cairo-$pkgver.tar.bz2"
_builddir="$srcdir/py2cairo-$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"
./waf configure --prefix=/usr || return 1
./waf build || return 1
}
package() {
cd "$_builddir"
DESTDIR="${pkgdir}" ./waf install || return 1
}
md5sums="20337132c4ab06c1146ad384d55372c5 py2cairo-1.10.0.tar.bz2"
sha256sums="d30439f06c2ec1a39e27464c6c828b6eface3b22ee17b2de05dc409e429a7431 py2cairo-1.10.0.tar.bz2"
sha512sums="cb3d54de9af4134460ce731da8166a3127a642c8a2e6184109437ddec115cd55b8dd2413a5c81700277bfe2f22fcfe268db4f3ba0f7649751e85bb34295f79fc py2cairo-1.10.0.tar.bz2"
|