# Maintainer: PktSurf app=gtk3 version=3.24.38 build=3sml homepage="https://gtk.org" download="https://gitlab.gnome.org/GNOME/gtk/-/archive/$version/gtk-$version.tar.bz2" desc="GObject-based multi-platform GUI toolkit" requires="fribidi iso-codes wayland libxkbcommon libepoxy shared-mime-info cairo gobject-introspection atk pango gdk-pixbuf librsvg at-spi2-atk" prepbuilddir() { mkandenterbuilddir rm -rf "gtk+-$version" tar xf $srcdir/gtk+-$version.tar.?z cd "gtk+-$version" fixbuilddirpermissions applypatch $srcdir/charcode.patch applypatch $srcdir/dbus-crash.patch applypatch $srcdir/glsync-fix.patch applypatch $srcdir/offscreen-crash.patch applypatch $srcdir/pad-fix.patch applypatch $srcdir/password-segv.patch applypatch $srcdir/stylus-map.patch applypatch $srcdir/x11-perf.patch } build() { mkdir -p smbuild && cd smbuild meson .. \ --prefix=/usr \ -Dgtk_doc=false \ -Dman=false \ -Dbroadway_backend=true \ -Dx11_backend=true \ -Dwayland_backend=true \ -Dtests=false ninja DESTDIR="$pkg" ninja install cp ../COPYING $pkgdocs/ # Install basic startup file echo 'gtk-theme-name="Adwaita"' > $pkg/etc/gtk-3.0/gtkrc.new # Don't clobber im-multipress.conf mv $pkg/etc/gtk-3.0/im-multipress.conf $pkg/etc/gtk-3.0/im-multipress.conf.new mkfinalpkg } sha512sums=" 1d2d05759614520b6d80f0992343c0c81811b712e36b6d9ec007ae2da9ff41785c9645902af8fc8b1825dd136720168a0fa4d7264c63b8826b866ba019b3de32 gtk+-3.24.38.tar.lz "