summarylogtreecommitdiffstats
path: root/rstudio-desktop-git.install
diff options
context:
space:
mode:
authorArtem A Klevtsov2015-07-15 12:53:38 +0700
committerArtem A Klevtsov2015-07-15 12:53:38 +0700
commit9cb24ea4435cff5441594eec12f119319cb3c00e (patch)
treeaec978c1653f15fcf6c62e69bb6e773851126b3b /rstudio-desktop-git.install
downloadaur-9cb24ea4435cff5441594eec12f119319cb3c00e.tar.gz
Initial import
Diffstat (limited to 'rstudio-desktop-git.install')
-rw-r--r--rstudio-desktop-git.install17
1 files changed, 17 insertions, 0 deletions
diff --git a/rstudio-desktop-git.install b/rstudio-desktop-git.install
new file mode 100644
index 000000000000..50cc63dbfd2d
--- /dev/null
+++ b/rstudio-desktop-git.install
@@ -0,0 +1,17 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor
+ update-mime-database /usr/share/mime &> /dev/null
+ update-desktop-database -q
+ ln -sf /usr/lib/rstudio/bin/rstudio /usr/bin/rstudio
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ xdg-icon-resource forceupdate --theme hicolor
+ update-mime-database /usr/share/mime &> /dev/null
+ update-desktop-database -q
+ rm -f /usr/bin/rstudio
+}