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

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

MAKEDEPS="meson ninja gobject-introspection toybox glib shared-mime-info intltool libpng libjpeg-turbo tiff musl python-docutils"

PKG_VER=2.42.9
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
}