[arch-commits] Commit in gtk2/trunk (gtk2.install)
Jan de Groot
jgc at archlinux.org
Sun Oct 26 10:24:01 UTC 2008
Date: Sunday, October 26, 2008 @ 06:24:01
Author: jgc
Revision: 17160
Simplify install scriptlet
Modified:
gtk2/trunk/gtk2.install
--------------+
gtk2.install | 24 +++++-------------------
1 file changed, 5 insertions(+), 19 deletions(-)
Modified: gtk2.install
===================================================================
--- gtk2.install 2008-10-26 10:21:32 UTC (rev 17159)
+++ gtk2.install 2008-10-26 10:24:01 UTC (rev 17160)
@@ -1,27 +1,13 @@
-# arg 1: the new package version
post_install() {
- # we need to ldconfig first, in case xfree86's libs aren't
- # in ld.so.cache yet
- sbin/ldconfig -r .
- mkdir -p etc/gtk-2.0 &>/dev/null
- usr/bin/gtk-query-immodules-2.0 >etc/gtk-2.0/gtk.immodules
- usr/bin/gdk-pixbuf-query-loaders >etc/gtk-2.0/gdk-pixbuf.loaders
+ usr/bin/gtk-query-immodules-2.0 > etc/gtk-2.0/gtk.immodules
+ usr/bin/gdk-pixbuf-query-loaders > etc/gtk-2.0/gdk-pixbuf.loaders
}
-# arg 1: the new package version
-# arg 2: the old package version
post_upgrade() {
- post_install $1
+ post_install
}
-# arg 1: the old package version
pre_remove() {
- rm -f etc/gtk-2.0/gtk.immodules &>/dev/null
- rm -f etc/gtk-2.0/gdk-pixbuf.loaders &>/dev/null
- rmdir etc/gtk-2.0 &>/dev/null
+ rm -f etc/gtk-2.0/gtk.immodules &>/dev/null
+ rm -f etc/gtk-2.0/gdk-pixbuf.loaders &>/dev/null
}
-
-op=$1
-shift
-
-$op $*
More information about the arch-commits
mailing list