diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-01-29 12:11:41 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-01-29 12:11:41 +0000 |
commit | 88a3868e9386114c957a617c8969e8fb2164cd11 (patch) | |
tree | ad69276129ca0916505e3a07434ae1dc1715b5e1 /main | |
parent | a330b3ac6853308d403edf50d75a4c71191a0328 (diff) | |
download | aports-88a3868e9386114c957a617c8969e8fb2164cd11.tar.bz2 aports-88a3868e9386114c957a617c8969e8fb2164cd11.tar.xz |
main/gtk+: Pixbuf loader registration trigger
Diffstat (limited to 'main')
-rw-r--r-- | main/gtk+/APKBUILD | 4 | ||||
-rw-r--r-- | main/gtk+/gtk+.trigger | 14 |
2 files changed, 15 insertions, 3 deletions
diff --git a/main/gtk+/APKBUILD b/main/gtk+/APKBUILD index 1bcef6ca1..1a6f9ce45 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 e9ff91c91..af2abb727 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 |