[arch-commits] Commit in gtk4/trunk (PKGBUILD gtk4-querymodules.hook)
Jan Steffens
heftig at archlinux.org
Tue Jan 12 08:43:47 UTC 2021
Date: Tuesday, January 12, 2021 @ 08:43:46
Author: heftig
Revision: 406132
4.0.1-2: FS#69297 add hook to scan modules
Added:
gtk4/trunk/gtk4-querymodules.hook
Modified:
gtk4/trunk/PKGBUILD
------------------------+
PKGBUILD | 9 ++++++---
gtk4-querymodules.hook | 12 ++++++++++++
2 files changed, 18 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-01-12 08:34:48 UTC (rev 406131)
+++ PKGBUILD 2021-01-12 08:43:46 UTC (rev 406132)
@@ -3,7 +3,7 @@
pkgbase=gtk4
pkgname=(gtk4 gtk-update-icon-cache)
pkgver=4.0.1
-pkgrel=1
+pkgrel=2
epoch=1
pkgdesc="GObject-based multi-platform GUI toolkit"
arch=(x86_64)
@@ -20,10 +20,11 @@
license=(LGPL)
_commit=60835227a1ff24512c98b2da608979b426329d87 # tags/4.0.1^0
source=("git+https://gitlab.gnome.org/GNOME/gtk.git#commit=$_commit"
- gtk-update-icon-cache.{hook,script})
+ gtk-update-icon-cache.{hook,script} gtk4-querymodules.hook)
sha256sums=('SKIP'
'2d435e3bec8b79b533f00f6d04decb1d7c299c6e89b5b175f20be0459f003fe8'
- 'f1d3a0dbfd82f7339301abecdbe5f024337919b48bd0e09296bb0e79863b2541')
+ 'f1d3a0dbfd82f7339301abecdbe5f024337919b48bd0e09296bb0e79863b2541'
+ 'cd8e607eddd9941f279084e1d15309941423d26cca1897f43524a02e58e48816')
pkgver() {
cd gtk
@@ -61,6 +62,8 @@
gtk-font-name = Cantarell 11
END
+ install -Dt "$pkgdir/usr/share/libalpm/hooks" -m644 gtk4-querymodules.hook
+
# gtk-update-icon-cache is also used by other toolkits
mkdir -p guic/usr/{bin,share/man/man1}
mv {"$pkgdir",guic}/usr/bin/gtk4-update-icon-cache
Added: gtk4-querymodules.hook
===================================================================
--- gtk4-querymodules.hook (rev 0)
+++ gtk4-querymodules.hook 2021-01-12 08:43:46 UTC (rev 406132)
@@ -0,0 +1,12 @@
+[Trigger]
+Type = Path
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Target = usr/lib/gtk-4.0/4.0.0/*/
+
+[Action]
+Description = Updating GTK4 module cache...
+When = PostTransaction
+Exec = /usr/share/libalpm/scripts/gio-querymodules
+NeedsTargets
More information about the arch-commits
mailing list