diff options
author | John Hamelink | 2017-10-11 14:50:58 +0100 |
---|---|---|
committer | John Hamelink | 2017-10-11 14:54:42 +0100 |
commit | 300371f83467d41cd7aa01f07539a97bc7497e91 (patch) | |
tree | b400d33cd51320acf023953f36cfc1a8d22ef042 /popsql.install | |
download | aur-300371f83467d41cd7aa01f07539a97bc7497e91.tar.gz |
Initial Commit
Diffstat (limited to 'popsql.install')
-rw-r--r-- | popsql.install | 19 |
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 +} |