summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorsamogot2018-12-19 15:00:26 +0200
committersamogot2018-12-19 15:00:26 +0200
commit22dbbab89dccb7f3feacc166925b09aeeb199454 (patch)
tree34bdad3a8adfc0b8723932d95c1864edae543721
parent64e64339422f9664a023a9ab6abb6c464863597d (diff)
downloadaur-22dbbab89dccb7f3feacc166925b09aeeb199454.tar.gz
Safe upgrade hook
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD2
-rw-r--r--ricoh-sp220-som.install16
3 files changed, 13 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 58b3b253e3b7..de1d29ae20cc 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index 1593b87d6ec1..03f14ef81f06 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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
+}