aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-cairo/APKBUILD
blob: 1119611e2e01fdbd3d60bb1ba7af1a51e18eb96f (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py-cairo
pkgver=1.8.10
pkgrel=0
pkgdesc="Python bindings for the cairo graphics library"
url="http://cairographics.org/pycairo/"
arch="x86 x86_64"
license="GPL"
depends=
makedepends="python-dev cairo-dev"
install=
subpackages="$pkgname-dev"
source="http://cairographics.org/releases/py2cairo-$pkgver.tar.gz"


_builddir="$srcdir"/pycairo-$pkgver

prepare() {
	cd "$_builddir"
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
}

md5sums="87421a6a70304120555ba7ba238f3dc3  py2cairo-1.8.10.tar.gz"