summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcin Wieczorek2016-05-02 22:53:10 +0200
committerMarcin Wieczorek2016-05-02 22:53:10 +0200
commit8b327bfb8021999dfea204b76fe30c6ad4e3ff32 (patch)
treee5b5c7c3888bde8bf5e370a808f60ba945ace746
parent87e26ba13e85f770a349e95392826a51e81afabc (diff)
downloadaur-8b327bfb8021999dfea204b76fe30c6ad4e3ff32.tar.gz
Added messengerfordesktop-git.install file
-rw-r--r--.SRCINFO1
-rwxr-xr-xPKGBUILD1
-rw-r--r--messengerfordesktop-git.install23
3 files changed, 25 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 313f7095261..fd2ae80a5e7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,6 +3,7 @@ pkgbase = messengerfordesktop-git
pkgver = v1.4.7
pkgrel = 2
url = http://messengerfordesktop.com/
+ install = messengerfordesktop-git.install
arch = i686
arch = x86_64
license = MIT
diff --git a/PKGBUILD b/PKGBUILD
index 031adf30cd7..926a05fadb2 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,6 +12,7 @@ depends=('gcc-libs' 'cairo' 'libxtst' 'alsa-lib' 'gtk2' 'gconf' 'libnotify' 'fon
makedepends=('git' 'gulp' 'npm')
source=("$pkgname::git+https://github.com/Sytten/Facebook-Messenger-Desktop.git")
md5sums=('SKIP')
+install="$pkgname.install"
if [ $(uname -m) == "i686" ]
then
diff --git a/messengerfordesktop-git.install b/messengerfordesktop-git.install
new file mode 100644
index 00000000000..249587b2825
--- /dev/null
+++ b/messengerfordesktop-git.install
@@ -0,0 +1,23 @@
+msg_blue() {
+ printf "${blue}==>${bold} $1${all_off}\n"
+}
+
+_update() {
+ msg_blue "Updating desktop MIME database..."
+ update-desktop-database -q
+}
+
+post_install() {
+ ln -sf /opt/MessengerForDesktop/Messenger /usr/local/bin/messengerfordesktop
+ _update
+}
+
+post_upgrade() {
+ _update
+}
+
+post_remove() {
+ rm -f /usr/local/bin/messengerfordesktop
+ rm -f /usr/share/applications/messengerfordesktop.desktop
+ _update
+}