summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoan Figueras2020-09-21 12:01:11 +0200
committerJoan Figueras2020-09-21 12:01:11 +0200
commitf6b805abbca3a07092244b3584123ed097dbb75a (patch)
tree8e956ca569d44744f5263a030fa8a86c5c70f210
parent7b4cd6f8a51e24b6eae134da6cd8ef37e8f8704d (diff)
downloadaur-f6b805abbca3a07092244b3584123ed097dbb75a.tar.gz
Added install script to clean felix-cache folder before uninstall
-rw-r--r--.SRCINFO1
-rw-r--r--PKGBUILD1
-rw-r--r--mucommander.install4
3 files changed, 6 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
index bd8311c9523..6f6aab564ff 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,6 +3,7 @@ pkgbase = mucommander
pkgver = 0.9.5
pkgrel = 1
url = http://www.mucommander.com
+ install = mucommander.install
arch = any
license = GPL
depends = java-runtime
diff --git a/PKGBUILD b/PKGBUILD
index 3f384d490dd..e65af87f06d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,6 +13,7 @@ url="http://www.mucommander.com"
depends=('java-runtime' 'bash')
arch=('any')
license=('GPL')
+install=${pkgname}.install
source=("https://github.com/${pkgname}/${pkgname}/releases/download/${_pkgver}/${pkgname}-${_pkgver}.tar.gz"
"${pkgname}.png" "${pkgname}.desktop")
sha256sums=('0fd53ea3cf7f1a302a8cb9a889779454185006e9c66d7142b6058d236980c1c5'
diff --git a/mucommander.install b/mucommander.install
new file mode 100644
index 00000000000..b7a8d88314b
--- /dev/null
+++ b/mucommander.install
@@ -0,0 +1,4 @@
+## arg 1: the old package version
+pre_remove() {
+ rm -rf /usr/share/mucommander/felix-cache/*
+}