summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/gtk4/APKBUILD29
-rw-r--r--user/gtk4/gtk4.post-deinstall4
-rw-r--r--user/gtk4/gtk4.post-install4
-rw-r--r--user/gtk4/gtk4.post-upgrade4
4 files changed, 30 insertions, 11 deletions
diff --git a/user/gtk4/APKBUILD b/user/gtk4/APKBUILD
index 71c6b0a42..186310549 100644
--- a/user/gtk4/APKBUILD
+++ b/user/gtk4/APKBUILD
@@ -1,7 +1,7 @@
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Sile Ekaterin Liszka <sheila@vulpine.house>
pkgname=gtk4
-pkgver=4.8.3
+pkgver=4.12.3
pkgrel=0
pkgdesc="Version 4 of the GNOME graphics toolkit"
url="https://www.gtk.org"
@@ -13,15 +13,16 @@ makedepends="cairo-dev cmake cups-dev ffmpeg-dev ffmpeg-libs gdk-pixbuf-dev
gi-docgen glib-dev gobject-introspection-dev graphene-dev gstreamer-dev
gst-plugins-bad-dev iso-codes-dev libepoxy-dev libexecinfo-dev
libxcursor-dev libxi-dev libxinerama-dev libxkbcommon-dev libxrandr-dev
- meson ninja pango-dev>=1.50.0 py3-docutils py3-jinja2 py3-markdown
+ meson>=0.63.0 ninja pango-dev>=1.50.0 py3-docutils py3-jinja2 py3-markdown
py3-pygments py3-pygobject py3-toml py3-typogrify tiff-dev
wayland-dev wayland-protocols"
-subpackages="$pkgname-dev $pkgname-doc"
+install="$pkgname.post-install $pkgname.post-deinstall $pkgname.post-upgrade"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/gtk/${pkgver%.*}/gtk-$pkgver.tar.xz"
builddir="$srcdir/gtk-$pkgver"
build() {
- meson \
+ meson setup \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
@@ -29,21 +30,27 @@ build() {
--buildtype=release \
--wrap-mode=nofallback \
-Dc_link_args='-lexecinfo' \
- -Dgtk_doc=true \
+ -Ddocumentation=true \
-Dman-pages=true \
- -Ddemos=false \
+ -Dbuild-demos=false \
-Dbuild-examples=false \
build
- ninja -C build
+ # for whatever reason, the build system fails to build these on its own
+ ninja -C build gdk/version/gdkversionmacros.h gdk/version/gdk-visibility.h
+ meson compile -C build
}
check() {
- ninja -C build test
+ meson test -C build
}
package() {
- DESTDIR="$pkgdir" ninja -C build install
+ DESTDIR="$pkgdir" meson install -C build
+}
+lang() {
+ mkdir -p "$subpkgdir"/usr/share/gtk-4.0/emoji
+ mv "$pkgdir"/usr/share/gtk-4.0/emoji "$subpkgdir"/usr/share/gtk-4.0
+ default_lang
}
-
-sha512sums="56be0f5ce85a9cbbda4a5de53baeeb6b8cc527a5d34723ae5548759ec7c28f03d204b6b6758dffed02a9e226f3bfcd1f15971105c2f2f7be7cef22538be27754 gtk-4.8.3.tar.xz"
+sha512sums="f3efa9ad340362cecd81389219092b46e3b3f7b049dd6e02aecf4ac74f64f413f0b99c23cfac854e6b0a84d9715fb832beb7e0e698fcdb90ee49a78b27d0e366 gtk-4.12.3.tar.xz"
diff --git a/user/gtk4/gtk4.post-deinstall b/user/gtk4/gtk4.post-deinstall
new file mode 100644
index 000000000..58583cd6a
--- /dev/null
+++ b/user/gtk4/gtk4.post-deinstall
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+rm -f etc/gtk-4.0/gdk-pixbuf.loaders
+
diff --git a/user/gtk4/gtk4.post-install b/user/gtk4/gtk4.post-install
new file mode 100644
index 000000000..271a5eaf9
--- /dev/null
+++ b/user/gtk4/gtk4.post-install
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+usr/bin/gdk-pixbuf-query-loaders --update-cache
+
diff --git a/user/gtk4/gtk4.post-upgrade b/user/gtk4/gtk4.post-upgrade
new file mode 100644
index 000000000..271a5eaf9
--- /dev/null
+++ b/user/gtk4/gtk4.post-upgrade
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+usr/bin/gdk-pixbuf-query-loaders --update-cache
+