summarylogtreecommitdiffstats
path: root/popsql.install
diff options
context:
space:
mode:
authorJohn Hamelink2017-10-11 14:50:58 +0100
committerJohn Hamelink2017-10-11 14:54:42 +0100
commit300371f83467d41cd7aa01f07539a97bc7497e91 (patch)
treeb400d33cd51320acf023953f36cfc1a8d22ef042 /popsql.install
downloadaur-300371f83467d41cd7aa01f07539a97bc7497e91.tar.gz
Initial Commit
Diffstat (limited to 'popsql.install')
-rw-r--r--popsql.install19
1 files changed, 19 insertions, 0 deletions
diff --git a/popsql.install b/popsql.install
new file mode 100644
index 000000000000..2b266cb92721
--- /dev/null
+++ b/popsql.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/PopSQL/popsql' '/usr/bin/popsql'
+ 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/popsql'
+ update-desktop-database -q
+}