summaryrefslogtreecommitdiff
path: root/repo/gtk3
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-31 11:05:19 +0100
committerdavidovski <david@davidovski.xyz>2022-05-31 11:05:19 +0100
commit48ca75555522716f0f686dcae3dd6cf3d8ad714d (patch)
tree00c0f58550ba4661e87376f2f02c8001c69bae44 /repo/gtk3
parent871b2b573f01c1b3176a0f65458b3d281b41c437 (diff)
removed idea of repos
Diffstat (limited to 'repo/gtk3')
-rw-r--r--repo/gtk3/gtk3.xibuild43
1 files changed, 43 insertions, 0 deletions
diff --git a/repo/gtk3/gtk3.xibuild b/repo/gtk3/gtk3.xibuild
new file mode 100644
index 0000000..3b14d0a
--- /dev/null
+++ b/repo/gtk3/gtk3.xibuild
@@ -0,0 +1,43 @@
+#!/bin/sh
+
+NAME="gtk3"
+DESC="The GTK+ Toolkit (v3)"
+
+MAKEDEPS="meson ninja gtk2 docbook-dtd gtk-doc"
+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
+}