summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD16
2 files changed, 12 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2941e897285..9ad39105fc2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = gmail-desktop
pkgdesc = Unofficial Gmail desktop app
pkgver = 2.25.3
- pkgrel = 4
+ pkgrel = 6
url = https://github.com/timche/gmail-desktop
arch = x86_64
license = MIT
diff --git a/PKGBUILD b/PKGBUILD
index fa255abbc16..0aacc549237 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,12 +1,14 @@
# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
pkgname=gmail-desktop
pkgver=2.25.3
-pkgrel=4
+pkgrel=6
+_electronversion=12
+_nodeversion=14
pkgdesc="Unofficial Gmail desktop app"
arch=('x86_64')
url="https://github.com/timche/gmail-desktop"
license=('MIT')
-depends=('electron12')
+depends=("electron${_electronversion}")
makedepends=('nvm' 'yarn')
optdepends=('libnotify: desktop notifications'
'libappindicator-gtk3: tray icon')
@@ -35,15 +37,19 @@ prepare() {
sed -i '/husky/d' package.json
_ensure_local_nvm
- nvm install 14.17.6
+ nvm install "$_nodeversion"
}
build() {
cd "$pkgname-$pkgver"
_ensure_local_nvm
- yarn install --cache-folder "$srcdir/yarn-cache"
+ electronDist="/usr/lib/electron$_electronversion"
+ electronVer="$(sed s/^v// /usr/lib/electron$_electronversion/version)"
+ yarn config set cache-folder "$srcdir/yarn-cache"
+ yarn install
yarn compile
- ./node_modules/.bin/electron-builder --linux dir
+ ./node_modules/.bin/electron-builder --linux --x64 --dir \
+ $dist -c.electronDist=$electronDist -c.electronVersion=$electronVer
}
package() {