extra/gtk4 to 4.0.1-2

This commit is contained in:
Kevin Mihelich 2021-01-15 13:44:26 +00:00
parent 762d8c9a33
commit a56a3854e6
2 changed files with 18 additions and 3 deletions

View file

@ -8,7 +8,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)
@ -25,10 +25,11 @@ makedepends=(git meson gtk-doc glib2-docs wayland-protocols vulkan-headers
license=(LGPL)
_commit=60835227a1ff24512c98b2da608979b426329d87 # tags/4.0.1^0
source=("git+https://github.com/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
@ -66,6 +67,8 @@ gtk-theme-name = Adwaita
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

View file

@ -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