From c51ef797a707f4e2c6f9688d4378f2b0e9898a66 Mon Sep 17 00:00:00 2001 From: Perberos Date: Thu, 1 Dec 2011 22:56:10 -0300 Subject: moving from https://github.com/perberos/mate-desktop-environment --- distro/archlinux/mate-panel.install | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 distro/archlinux/mate-panel.install (limited to 'distro/archlinux/mate-panel.install') diff --git a/distro/archlinux/mate-panel.install b/distro/archlinux/mate-panel.install new file mode 100644 index 00000000..67255325 --- /dev/null +++ b/distro/archlinux/mate-panel.install @@ -0,0 +1,31 @@ +pkgname=mate-panel + +post_install() { + MATECONF_CONFIG_SOURCE=`usr/bin/mateconftool-2 --get-default-source` + usr/bin/mateconftool-2 --config-source="${MATECONF_CONFIG_SOURCE}" --direct --load \ + etc/mateconf/schemas/panel-default-setup.entries >/dev/null + usr/sbin/mateconfpkg --install ${pkgname} + + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +pre_upgrade() { + pre_remove $1 +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + MATECONF_CONFIG_SOURCE=`usr/bin/mateconftool-2 --get-default-source` + + usr/bin/mateconftool-2 --config-source="${MATECONF_CONFIG_SOURCE}" --direct --unload \ + etc/mateconf/schemas/panel-default-setup.entries > /dev/null + + usr/sbin/mateconfpkg --uninstall ${pkgname} +} + +post_remove() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} -- cgit v1.2.1