aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/gtk+/APKBUILD4
-rw-r--r--main/gtk+/gtk+.trigger14
2 files changed, 15 insertions, 3 deletions
diff --git a/main/gtk+/APKBUILD b/main/gtk+/APKBUILD
index 1bcef6ca17..1a6f9ce452 100644
--- a/main/gtk+/APKBUILD
+++ b/main/gtk+/APKBUILD
@@ -1,11 +1,11 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gtk+
pkgver=2.18.6
-pkgrel=1
+pkgrel=2
pkgdesc="The GTK+ Toolkit (v2)"
url="http://www.gtk.org/"
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.post-deinstall"
-triggers="$pkgname.trigger:/usr/share/icons/*"
+triggers="$pkgname.trigger:/usr/share/icons/* /usr/lib/gtk-2.0/2.10.0/loaders"
license="LGPL"
subpackages="$pkgname-dev $pkgname-doc"
depends="shared-mime-info"
diff --git a/main/gtk+/gtk+.trigger b/main/gtk+/gtk+.trigger
index e9ff91c91b..af2abb7278 100644
--- a/main/gtk+/gtk+.trigger
+++ b/main/gtk+/gtk+.trigger
@@ -1,5 +1,17 @@
#!/bin/sh
+loaders=
for i in "$@"; do
- gtk-update-icon-cache -q -t -f $i
+ case "$i" in
+ /usr/lib/gtk-2.0/2.10.0/loaders)
+ loaders=1
+ ;;
+ /usr/share/icons/*)
+ gtk-update-icon-cache -q -t -f $i
+ ;;
+ esac
done
+
+if [ -n "$loaders" ]; then
+ gdk-pixbuf-query-loaders > etc/gtk-2.0/gdk-pixbuf.loaders
+fi