blob: b8ec90dd9b1152755e714b22ca68bc1389873d86 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py3-cairo
pkgver=1.21.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 meson"
checkdepends="py3-pytest"
subpackages="$pkgname-dev"
source="https://github.com/pygobject/pycairo/releases/download/v$pkgver/pycairo-$pkgver.tar.gz
fix-tests.patch
"
builddir="$srcdir"/pycairo-$pkgver
replaces="py-cairo" # Backwards compatibility
provides="py-cairo=$pkgver-r$pkgrel" # Backwards compatibility
build() {
abuild-meson \
-Dtests="$(want_check && echo true || echo false)" \
. output
meson compile -C output
}
check() {
meson test --print-errorlogs --no-rebuild -C output
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
sha512sums="
0de226b05d0a358f3546e4a0d5bf342f124373718d4900c891a09c1ede11e3ed1fb9bee163c00acfc215044683ddf0b29c8573b7454f9c39f957a47d63c34baf pycairo-1.21.0.tar.gz
eb533b5877f4350e14a9b7d830373af7a50028d1b9f70d53f67def5ac2a300c7e6e82dc9a6fe108763f3de81f4ab3437fc665f38c0b72df52ff966106f843401 fix-tests.patch
"
|