From 739c65c54cb0e957df5e9b76f93fb02554e5cac3 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 4 May 2022 23:52:30 +0100 Subject: moved everything to new file formatting --- repo/x11/gtk3/gtk3.xibuild | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 repo/x11/gtk3/gtk3.xibuild (limited to 'repo/x11/gtk3') diff --git a/repo/x11/gtk3/gtk3.xibuild b/repo/x11/gtk3/gtk3.xibuild new file mode 100644 index 0000000..14e4989 --- /dev/null +++ b/repo/x11/gtk3/gtk3.xibuild @@ -0,0 +1,43 @@ +#!/bin/sh + +NAME="gtk3" +DESC="The GTK+ Toolkit (v3)" + +MAKEDEPS="meson ninja iso-codes gtk2" +DEPS="atk at-spi2-atk sbase 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" + +PKG_VER=3.24.33 +SOURCE="https://download.gnome.org/sources/gtk+/${PKG_VER%.*}/gtk+-$PKG_VER.tar.xz" + + +prepare () { + # don't build demos + sed -e "s/^\(SRC_SUBDIRS =.*\)demos\(.*\)$/\1\2/" -i Makefile.am Makefile.in + aclocal -I m4 + autoreconf + automake --add-missing +} + +build () { + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --with-xinput=yes \ + --without-libjasper \ + --with-included-loaders=png \ + --with-gdktarget=x11 \ + --enable-man + + make +} + +package () { + make DESTDIR=$PKG_DEST 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 +} -- cgit v1.2.1