summaryrefslogtreecommitdiff
path: root/repo/x11/gdk-pixbuf/gdk-pixbuf.xibuild
blob: fe704e91d38f03eb9edded1f79e22927f1372cdb (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
#!/bin/sh

NAME="gdk-pixbuf"
DESC="GTK+ image loading library"

MAKEDEPS="meson ninja gobject-introspection"
DEPS="sbase glib shared-mime-info intltool libpng libjpeg-turbo tiff musl"

PKG_VER=2.42.8
SOURCE="https://download.gnome.org/sources/gdk-pixbuf/${PKG_VER%.*}/gdk-pixbuf-$PKG_VER.tar.xz"

ADDITIONAL="disable-tests.patch"

prepare () {
    touch gdk-pixbuf/loaders.cache
}

build () {
    mkdir build &&
    cd build    &&
    meson --prefix=/usr \
    		-Dinstalled_tests=false \
            .. &&
    ninja
}

check () {
    meson test -t 10
}

package () {
    DESTDIR=$PKG_DEST ninja install
}

postinstall () {
    gdk-pixbuf-query-loaders --update-cache
}