[arch-commits] Commit in emacs/trunk (PKGBUILD emacs.install)
Juergen Hoetzel
juergen at archlinux.org
Fri Jul 31 16:31:15 UTC 2009
Date: Friday, July 31, 2009 @ 12:31:14
Author: juergen
Revision: 48121
update icon cache on install/uninstall
Modified:
emacs/trunk/PKGBUILD
emacs/trunk/emacs.install
---------------+
PKGBUILD | 2 +-
emacs.install | 12 +++++++++---
2 files changed, 10 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2009-07-31 16:22:29 UTC (rev 48120)
+++ PKGBUILD 2009-07-31 16:31:14 UTC (rev 48121)
@@ -9,7 +9,7 @@
url="http://www.gnu.org/software/emacs/emacs.html"
license=('GPL')
options=(docs)
-depends=('dbus-core' 'librsvg' 'gpm' 'giflib' 'libtiff' 'libxpm' 'libjpeg>=7' 'gtk2' 'texinfo')
+depends=('dbus-core' 'librsvg' 'gpm' 'giflib' 'libtiff' 'libxpm' 'libjpeg>=7' 'gtk2' 'texinfo' 'hicolor-icon-theme')
source=(ftp://ftp.gnu.org/gnu/emacs/$pkgname-$pkgver.tar.gz emacs.desktop)
md5sums=('a620d4452769d04ad8864d662f34f8dd' '8af038d2ba4561271e935bb444ceb4e3')
install=emacs.install
Modified: emacs.install
===================================================================
--- emacs.install 2009-07-31 16:22:29 UTC (rev 48120)
+++ emacs.install 2009-07-31 16:31:14 UTC (rev 48121)
@@ -1,12 +1,16 @@
-info_dir=/usr/share/info
+ICON_PATH=/usr/share/icons/hicolor
+INFO_DIR=/usr/share/info
+
info_files=(infoada-mode autotype calc ccmode cl dir dired-x ebrowse
ediff efaq eintr elisp emacs emacs-mime erc eshell eudc flymake forms
gnus idlwave info message mh-e newsticker org pcl-cvs pgg rcirc reftex
sc ses sieve smtpmail speedbar tramp url vip viper widget woman)
post_install() {
+ gtk-update-icon-cache -q -t -f ${ICON_PATH}
+
for f in ${info_files[@]}; do
- install-info ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+ install-info ${INFO_DIR}/$f.gz ${INFO_DIR}/dir 2> /dev/null
done
}
@@ -15,8 +19,10 @@
}
pre_remove() {
+ gtk-update-icon-cache -q -t -f ${ICON_PATH}
+
for f in ${info_files[@]}; do
- install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+ install-info --delete ${INFO_DIR}/$f.gz ${INFO_DIR}/dir 2> /dev/null
done
}
More information about the arch-commits
mailing list