summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorxXR01I1Xx2020-03-18 21:52:50 +0100
committerxXR01I1Xx2020-03-18 21:52:50 +0100
commitcd41410b8399e661dcfc53468c838bdbdb657e9b (patch)
tree615cc511d149361c8b7d6389ccc2c4d51ca1c5af
downloadaur-cd41410b8399e661dcfc53468c838bdbdb657e9b.tar.gz
Version: 1.0.4
-rw-r--r--.SRCINFO30
-rw-r--r--PKGBUILD46
-rw-r--r--session-desktop-git.install15
-rw-r--r--session-desktop.desktop9
4 files changed, 100 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0bce9cc97cf
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,30 @@
+pkgbase = session-desktop-git
+ pkgdesc = Private messaging from your desktop
+ pkgver = 1.0.4
+ pkgrel = 1
+ url = https://getsession.org
+ install = session-desktop-git.install
+ arch = x86_64
+ license = GPL-3.0
+ makedepends = git
+ makedepends = nvm
+ makedepends = yarn
+ depends = libxtst
+ depends = nss
+ depends = alsa-lib
+ depends = libxss
+ depends = libnotify
+ depends = xdg-utils
+ optdepends = libappindicator-gtk3: for tray support
+ provides = session-messenger-desktop
+ conflicts = session-desktop
+ conflicts = session-desktop-bin
+ conflicts = session-desktop-appimage
+ options = !strip
+ source = git+https://github.com/loki-project/session-desktop.git
+ source = session-desktop.desktop
+ sha256sums = SKIP
+ sha256sums = 931e317b69e5c5ed3ef1f2ff0c82bf72b8706ab5ac50ad0564f3f164d7d5f7b8
+
+pkgname = session-desktop-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..363562116b1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Roland Auer <xxr01i1xx@tuta.io>
+pkgname=session-desktop-git
+pkgver=1.0.4
+pkgrel=1
+pkgdesc="Private messaging from your desktop"
+arch=(x86_64)
+url="https://getsession.org"
+license=('GPL-3.0')
+depends=(libxtst nss alsa-lib libxss libnotify xdg-utils)
+makedepends=('git' 'nvm' 'yarn')
+optdepends=('libappindicator-gtk3: for tray support')
+provides=(session-messenger-desktop)
+conflicts=(session-desktop session-desktop-bin session-desktop-appimage)
+options=(!strip)
+install=$pkgname.install
+source=('git+https://github.com/loki-project/session-desktop.git'
+ 'session-desktop.desktop')
+sha256sums=('SKIP'
+ '931e317b69e5c5ed3ef1f2ff0c82bf72b8706ab5ac50ad0564f3f164d7d5f7b8')
+
+prepare() {
+ source /usr/share/nvm/init-nvm.sh
+ nvm install 10.13.0
+ export SIGNAL_ENV=production
+}
+
+build() {
+ cd "$srcdir/session-desktop"
+ nvm use 10.13.0
+ yarn install --frozen-lockfile
+ yarn generate
+ yarn lint-full
+ $(yarn bin)/electron-builder --config.extraMetadata.environment=$SIGNAL_ENV --publish=never --config.directories.output=release --linux tar.xz
+}
+
+package() {
+ mkdir -p $pkgdir/usr/share/applications
+ mkdir -p $pkgdir/opt/
+ mkdir -p $pkgdir/usr/share/icons/hicolor/256x256/apps/
+ mkdir -p $pkgdir/usr/share/icons/hicolor/64x64/apps/
+ tar xf $srcdir/session-desktop/release/session-messenger-desktop-linux-x64-$pkgver.tar.xz -C $pkgdir/opt/
+ mv $pkgdir/opt/session-messenger-desktop-linux-x64-$pkgver $pkgdir/opt/Session
+ cp $srcdir/session-desktop/images/session/icon_256.png $pkgdir/usr/share/icons/hicolor/256x256/apps/session-messenger-desktop.png
+ cp $srcdir/session-desktop/images/session/icon_64.png $pkgdir/usr/share/icons/hicolor/64x64/apps/session-messenger-desktop.png
+ cp $srcdir/session-desktop.desktop $pkgdir/usr/share/applications/
+}
diff --git a/session-desktop-git.install b/session-desktop-git.install
new file mode 100644
index 00000000000..119e061e79b
--- /dev/null
+++ b/session-desktop-git.install
@@ -0,0 +1,15 @@
+post_install() {
+ sudo ln -sf /opt/Session/session-messenger-desktop /usr/bin/session-messenger-desktop
+ sudo update-mime-database /usr/share/mime
+ sudo update-desktop-database /usr/share/applications
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ sudo rm -f '/usr/bin/session-messenger-desktop'
+ sudo update-mime-database /usr/share/mime
+ sudo update-desktop-database /usr/share/applications
+}
diff --git a/session-desktop.desktop b/session-desktop.desktop
new file mode 100644
index 00000000000..2b44f070ef9
--- /dev/null
+++ b/session-desktop.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Session
+Exec=/opt/Session/session-messenger-desktop %U
+Terminal=false
+Type=Application
+Icon=session-messenger-desktop
+StartupWMClass=Session
+Comment=Private messaging from your desktop
+Categories=Network;