summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorxXR01I1Xx2020-03-05 21:19:49 +0100
committerxXR01I1Xx2020-03-05 21:19:49 +0100
commitea4c34470a79be2d8950de022a0b9383b774f9a7 (patch)
treef50d3c135143156c101806f413613fcb92fdf8e7
parent0a4d9d5d3ab74c5030b405ea1d12d11dc6eaf9c1 (diff)
downloadaur-ea4c34470a79be2d8950de022a0b9383b774f9a7.tar.gz
Installation wasn't working
-rw-r--r--.SRCINFO1
-rw-r--r--PKGBUILD2
-rw-r--r--session-desktop.install7
3 files changed, 10 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a1dc5ca93cb6..84fcc4ba8d1a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,6 +3,7 @@ pkgbase = session-desktop
pkgver = 1.0.3
pkgrel = 1
url = https://getsession.org
+ install = session-desktop.install
arch = x86_64
license = GPL-3.0
depends = libnotify
diff --git a/PKGBUILD b/PKGBUILD
index f6fb29f172c3..3d7a0e51e2e5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,6 +14,8 @@ source_x86_64=("https://github.com/loki-project/session-desktop/releases/downloa
depends=("libnotify" "libappindicator-gtk3" "libxtst" "nss" "alsa-lib" "libxss")
+install=${pkgname}.install
+
package() {
cd ${srcdir}
tar xf data.tar.xz -C ${pkgdir} --exclude='./control'
diff --git a/session-desktop.install b/session-desktop.install
new file mode 100644
index 000000000000..02526456fb3c
--- /dev/null
+++ b/session-desktop.install
@@ -0,0 +1,7 @@
+post_install() {
+ sudo ln -sf /opt/Session/session-messenger-desktop /usr/bin/session-messenger-desktop
+}
+
+post_remove() {
+ sudo rm /usr/bin/session-messenger-desktop
+}