summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorxXR01I1Xx2020-03-26 10:13:27 +0100
committerxXR01I1Xx2020-03-26 10:13:27 +0100
commit3372e3978e3e292fb52a6591c7742ddb1f76bbc7 (patch)
tree00e48110d90a07cb542ff5f9cd82d87e4e471ad6
parent2f0bda7b7411baeb0cb3b47cad4c7a3ffd73559e (diff)
downloadaur-3372e3978e3e292fb52a6591c7742ddb1f76bbc7.tar.gz
Made the PKGBUILD better
-rw-r--r--PKGBUILD15
-rw-r--r--patch.diff.example2
2 files changed, 9 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 602eedc3b8d..98d7dba58a3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,9 @@
# Maintainer: xXR01I1Xx <xxr01i1xx@tuta.io>
pkgname=session-desktop-git
-pkgver=c7c72e5
_ver=1.0.5
-pkgrel=2
+_commit=c7c72e5
+pkgver=$_ver.$_commit
+pkgrel=1
pkgdesc="Private messaging from your desktop"
arch=(x86_64)
url="https://getsession.org"
@@ -19,13 +20,13 @@ source=('git+https://github.com/loki-project/session-desktop.git'
'patch.diff.example')
sha256sums=('SKIP'
'931e317b69e5c5ed3ef1f2ff0c82bf72b8706ab5ac50ad0564f3f164d7d5f7b8'
- '89f0f397de04eeffb2322d95dde072871690531111dd621aca2981dcd7112f2f')
+ '32f3875bd96e44fed11089ebc16b2dc6f1436ddcd21ae0abb6f452315f233262')
prepare() {
cd $srcdir/session-desktop
- git checkout $pkgver
+ git checkout $_commit
echo "Applying patch"
- sed "s/ver_placeholder/$pkgver/g" $srcdir/patch.diff.example > $srcdir/patch.diff
+ sed "s/ver_placeholder/$_ver-$_commit/g" $srcdir/patch.diff.example > $srcdir/patch.diff
git apply $srcdir/patch.diff
source /usr/share/nvm/init-nvm.sh && nvm install 10.13.0
}
@@ -63,7 +64,7 @@ package() {
cp $srcdir/session-desktop/build/icons/png/512x512.png $pkgdir/usr/share/icons/hicolor/512x512/apps/session-messenger-desktop.png
cp $srcdir/session-desktop/build/icons/png/1024x1024.png $pkgdir/usr/share/icons/hicolor/1024x1024/apps/session-messenger-desktop.png
- tar xf $srcdir/session-desktop/release/session-messenger-desktop-linux-x64-$_ver-$pkgver.tar.xz -C $pkgdir/opt/
- mv $pkgdir/opt/session-messenger-desktop-linux-x64-$_ver-$pkgver $pkgdir/opt/Session
+ tar xf $srcdir/session-desktop/release/session-messenger-desktop-linux-x64-$_ver-$_commit.tar.xz -C $pkgdir/opt/
+ mv $pkgdir/opt/session-messenger-desktop-linux-x64-$_ver-$_commit $pkgdir/opt/Session
cp $srcdir/session-desktop.desktop $pkgdir/usr/share/applications/
}
diff --git a/patch.diff.example b/patch.diff.example
index e597fb68f9c..412d399f256 100644
--- a/patch.diff.example
+++ b/patch.diff.example
@@ -7,7 +7,7 @@ index bfeb9b73..531be33e 100644
"productName": "Session",
"description": "Private messaging from your desktop",
- "version": "1.0.4",
-+ "version": "1.0.5-ver_placeholder",
++ "version": "ver_placeholder",
"license": "GPL-3.0",
"author": {
"name": "Loki Project",