blob: d9622c43439ffe7d2d91f7594a62b895bece58f8 (
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
|
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gdk-pixbuf
pkgver=2.42.10
pkgrel=5
pkgdesc="GTK+ image loading library"
url="https://wiki.gnome.org/Projects/GdkPixbuf"
arch="all"
license="LGPL-2.1-or-later"
depends="shared-mime-info"
makedepends="
glib-dev
gobject-introspection-dev
libjpeg-turbo-dev
libpng-dev
meson
py3-docutils
tiff-dev
"
install="$pkgname.pre-deinstall"
triggers="$pkgname.trigger=/usr/lib/gdk-pixbuf-2.0/*/loaders"
subpackages="$pkgname-dbg $pkgname-doc $pkgname-lang $pkgname-dev $pkgname-loaders"
source="https://download.gnome.org/sources/gdk-pixbuf/${pkgver%.*}/gdk-pixbuf-$pkgver.tar.xz"
case "$CARCH" in
x86|arm*)
# https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/issues/215
options="$options !check"
esac
# secfixes:
# 2.42.8-r0:
# - CVE-2021-44648
# 2.42.2-r0:
# - CVE-2020-29385
# 2.36.6-r1:
# - CVE-2017-6311
# - CVE-2017-6312
# - CVE-2017-6314
build() {
abuild-meson \
-Db_lto=true \
-Dinstalled_tests=false \
-Dtests="$(want_check && echo true || echo false)" \
output .
meson compile ${JOBS:+-j ${JOBS}} -C output
}
check() {
meson test -t 10 --print-errorlogs -C output
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
loaders() {
pkgdesc="Metapackage to pull in gdk-pixbuf loaders"
mkdir -p "$subpkgdir"
}
sha512sums="
ad64963b61ef8cc84ae450328ec8c90a852f974e29ffdd42263ed32de47af93c058f3ffdf91c5d6e9bba815f4e8e8fe5a19422ac1bfb079666339814ac059b3a gdk-pixbuf-2.42.10.tar.xz
"
|