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

NAME="gtk3"
DESC="The GTK+ Toolkit (v3)"

MAKEDEPS="meson ninja gtk2 docbook-dtd gtk-doc"
DEPS="atk at-spi2-atk toybox cairo gobject-introspection fontconfig fribidi gdk-pixbuf glib harfbuzz libepoxy intltool libx11 libxcomposite libxcursor libxdamage libxext libxfixes libxi libxinerama libxkbcommon libxrandr musl pango shared-mime-info wayland adwaita-icon-theme gsettings-desktop-schemas"

MAJ=3
PKG_VER=24.34
SOURCE="https://download.gnome.org/sources/gtk+/$MAJ.${PKG_VER%.*}/gtk+-$MAJ.$PKG_VER.tar.xz"

build () {
    mkdir build &&
    cd build    &&
    meson --prefix=/usr \
    		-Db_lto=true \
            -Dman=true \
            -Dgtk_doc=false \
            -Dbroadway_backend=true \
            .. &&
    ninja
}

package () {
    DESTDIR=$PKG_DEST ninja install
}

postinstall () {
    [ -d /etc/gtk-3.0 ] || mkdir - /etc/gtk-3.0
    /usr/bin/gtk-query-immodules-3.0 > /etc/gtk-3.0/gtk.immodules
    /usr/bin/gdk-pixbuf-query-loaders > /etc/gtk-3.0/gdk-pixbuf.loaders
}