updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / screenlets-pack / screenlets.install
blob3e478461716e4a5685284ee1a7a80a1750b67e2b
1 pkgname=screenlets-pack
2 desktop_files="/usr/share/applications/screenlet-*"
4 post_install() {
5   for x in $desktop_files
6   do
7     xdg-desktop-menu install --novendor --noupdate /usr/share/desktop-directories/Screenlets.directory $x
8   done
9   xdg-desktop-menu forceupdate
12 pre_upgrade() {
13   pre_remove $1
16 post_upgrade() {
17   post_install $1
20 pre_remove() {
21   for x in $desktop_files
22   do
23     xdg-desktop-menu uninstall --noupdate $x
24   done
25   xdg-desktop-menu forceupdate
28 post_remove() {
29   gtk-update-icon-cache -q -t -f usr/share/icons/hicolor