diff options
author | samogot | 2018-12-19 15:00:26 +0200 |
---|---|---|
committer | samogot | 2018-12-19 15:00:26 +0200 |
commit | 22dbbab89dccb7f3feacc166925b09aeeb199454 (patch) | |
tree | 34bdad3a8adfc0b8723932d95c1864edae543721 | |
parent | 64e64339422f9664a023a9ab6abb6c464863597d (diff) | |
download | aur-22dbbab89dccb7f3feacc166925b09aeeb199454.tar.gz |
Safe upgrade hook
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 2 | ||||
-rw-r--r-- | ricoh-sp220-som.install | 16 |
3 files changed, 13 insertions, 7 deletions
@@ -1,7 +1,7 @@ pkgbase = ricoh-sp220-som pkgdesc = Smart Organizing Monitor Utility for Ricoh SP220 series pkgver = 1.07 - pkgrel = 1 + pkgrel = 2 url = http://support.ricoh.com/bb/html/dr_ut_e/re1/model/sp221s/sp221s.htm install = ricoh-sp220-som.install arch = i686 @@ -1,7 +1,7 @@ # Maintainer: Ivan Naydonov <samogot@gmail.com> pkgname=ricoh-sp220-som pkgver=1.07 -pkgrel=1 +pkgrel=2 pkgdesc="Smart Organizing Monitor Utility for Ricoh SP220 series" arch=('i686' 'x86_64') diff --git a/ricoh-sp220-som.install b/ricoh-sp220-som.install index 781a5e311b40..d86c44778b7a 100644 --- a/ricoh-sp220-som.install +++ b/ricoh-sp220-som.install @@ -12,7 +12,7 @@ install_system_icons() { fi } -post_upgrade() { +update_menus() { #update the menu UPDATE_MENUS="`which update-menus 2> /dev/null`" #update the menu @@ -34,12 +34,18 @@ post_install() { rm -f /home/*/.som_uia.ini } -post_remove() { - post_upgrade -} - pre_remove() { install_system_icons uninstall } +post_remove() { + update_menus +} + +pre_upgrade() { + pre_remove +} +post_upgrade() { + post_install +} |