summarylogtreecommitdiffstats
path: root/.INSTALL
diff options
context:
space:
mode:
authormlatman2016-04-22 22:19:52 -0400
committermlatman2016-04-22 22:19:52 -0400
commitb038533e79a639d418a66d24b8baacf4f7090d2c (patch)
treec7dab13031990f74d12f7be13f98083d14d379b2 /.INSTALL
parent497357194d9bcd2f305c48562001593779ad2cca (diff)
downloadaur-b038533e79a639d418a66d24b8baacf4f7090d2c.tar.gz
Release 2.0.14 PackageRel 3
Diffstat (limited to '.INSTALL')
-rw-r--r--.INSTALL24
1 files changed, 24 insertions, 0 deletions
diff --git a/.INSTALL b/.INSTALL
new file mode 100644
index 000000000000..3893ca5c4bc4
--- /dev/null
+++ b/.INSTALL
@@ -0,0 +1,24 @@
+_update() {
+ update-desktop-database -q
+
+ xdg-icon-resource forceupdate --theme hicolor &>/dev/null
+
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+
+ ln -sf /opt/whatsie/whatsie /usr/bin/whatsie
+}
+
+post_install() {
+ _update
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ # Delete the link to the binary
+ rm -f /usr/bin/whatsie
+
+ _update
+}