summarylogtreecommitdiffstats
path: root/cacher.install
diff options
context:
space:
mode:
Diffstat (limited to 'cacher.install')
-rw-r--r--cacher.install19
1 files changed, 19 insertions, 0 deletions
diff --git a/cacher.install b/cacher.install
new file mode 100644
index 000000000000..fdfc11226b87
--- /dev/null
+++ b/cacher.install
@@ -0,0 +1,19 @@
+post_install() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+
+ # Link to the binary
+ ln -sf '/opt/Cacher/cacher' '/usr/bin/cacher'
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+
+ # Delete the link to the binary
+ rm -f '/usr/bin/cacher'
+ update-desktop-database -q
+}