updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gnome-globalmenu / gnome-globalmenu.install
blob17b9a176c23981ada5503b2dbbe56f99b97c94fc
1 # Contributor: Alessio Biancalana <dottorblaster@gmail.com >
3 pkgname=gnome-globalmenu
5 post_install() {
6 echo "Updating Schema..."
7 export GCONF_CONFIG_SOURCE=`usr/bin/gconftool-2 --get-default-source`
8 usr/bin/gconftool-2 --makefile-install-rule usr/share/gconf/schemas/${pkgname}.schemas > /dev/null
9 usr/sbin/gconfpkg --install ${pkgname}
10 scrollkeeper-update -q -p var/lib/scrollkeeper
11 update-desktop-database -q
12 #just to remove the lines may added to profile
13 bin/sed '/export GTK_MODULES=globalmenu-gnome/d' -i /etc/profile
14 echo ""
15 echo "==> Installation notes:"
16 echo " If you are using XFCE4, edit ~/.config/xfce4/xinitrc(and chmod +x)"
17 echo " #!/bin/sh"
18 echo " export GTK_MODULES=globalmenu-gnome"
19 echo " . /etc/xdg/xfce4/xinitrc"
20 echo ""
21 echo " If you are using GNOME, just add the globalmenu applets, and edit the preferences."
22 echo ""
23 echo " Available environment values are: (Optical)"
24 echo " GTK_MENUBAR_NO_MAC= eg: \"gedit gnome-settings-daemon\""
25 echo " GLOBALMENU_GNOME_ARGS="
26 echo " ##for many debug messages"
27 echo " --verbose"
28 echo " ##disable gnome-globalmenu"
29 echo " --disable"
30 echo " ##output log file to somewhere else, example: /dev/null"
31 echo " --log-file=\"/path/to/filename\" "
32 echo ""
35 pre_upgrade() {
36 pre_remove $1
39 post_upgrade() {
40 post_install $1
43 pre_remove() {
44 export GCONF_CONFIG_SOURCE=`usr/bin/gconftool-2 --get-default-source`
45 usr/bin/gconftool-2 --makefile-uninstall-rule usr/share/gconf/schemas/${pkgname}.schemas > /dev/null
46 usr/sbin/gconfpkg --uninstall ${pkgname}
49 post_remove() {
50 scrollkeeper-update -q -p var/lib/scrollkeeper
51 update-desktop-database -q
54 op=$1
55 shift
57 $op $*