blob: 0d2d1cdef362b0bc26a61fe146a36133b6953416 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cairo
pkgver=1.17.8
pkgrel=2
pkgdesc="A vector graphics library"
url="https://cairographics.org/"
arch="all"
options="!check" # Recursive dependency on gtk+2.0 for check.
license="LGPL-2.1-or-later OR MPL-1.1"
depends_dev="
$pkgname-tools=$pkgver-r$pkgrel
fontconfig-dev
freetype-dev
libxext-dev
libxrender-dev
pixman-dev
xcb-util-dev
"
makedepends="
$depends_dev
expat-dev
glib-dev
gtk-doc
libpng-dev
meson
zlib-dev
"
subpackages="
$pkgname-dbg
$pkgname-static
$pkgname-dev
$pkgname-doc
$pkgname-gobject
$pkgname-tools
"
source="https://gitlab.freedesktop.org/cairo/cairo/-/archive/$pkgver/cairo-$pkgver.tar.bz2
musl-stacksize.patch
"
# secfixes:
# 1.17.4-r1:
# - CVE-2019-6462
# 1.16.0-r2:
# - CVE-2020-35492
# 1.16.0-r1:
# - CVE-2018-19876
build() {
abuild-meson \
-Db_lto=true \
-Ddefault_library=both \
-Dgtk_doc=true \
-Dtests="$(want_check && echo enabled || echo disabled)" \
. output
meson compile -C output
}
check() {
meson test --no-rebuild --print-errorlogs -C output
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
gobject() {
pkgdesc="$pkgdesc (gobject bindings)"
amove usr/lib/libcairo-gobject.so.*
}
tools() {
pkgdesc="$pkgdesc (development tools)"
amove usr/bin
amove usr/lib/cairo/libcairo-trace.*
}
sha512sums="
86d59c60c0436dde1cced60f11774e08bc483b3310faa066f9cb1cd60e64c4b7d61a27d1f5d4781187b1a3839c7b3e490a7503d09f25dbdcd5be21290f066cf8 cairo-1.17.8.tar.bz2
86f26fe41deb5e14f553c999090d1ec1d92a534fa7984112c9a7f1d6c6a8f1b7bb735947e8ec3f26e817f56410efe8cc46c5e682f6a278d49b40a683513740e0 musl-stacksize.patch
"
|