aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-cairo/APKBUILD
blob: 6eab12b6f61addcc746847c7c66b4d4cf83294e2 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py3-cairo
pkgver=1.20.0
pkgrel=1
pkgdesc="Python3 bindings for the cairo graphics library"
url="http://cairographics.org/pycairo/"
arch="all"
license="LGPL-2.0-or-later"
makedepends="python3-dev cairo-dev"
subpackages="$pkgname-dev"
source="https://github.com/pygobject/pycairo/releases/download/v$pkgver/pycairo-$pkgver.tar.gz
	"
builddir="$srcdir"/pycairo-$pkgver

replaces="py-cairo" # Backwards compatibility
provides="py-cairo=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="d32d008b741653d02324b206a438f5fd85f2a433201d6f8b98c8f1adc712abea611a4b5ed95c55258efb662dc579eed6b2f752b10d9fc2b6a7c8e5edd19e5266  pycairo-1.20.0.tar.gz"