summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaime Martínez Rincón2021-04-15 22:29:37 +0200
committerJaime Martínez Rincón2021-04-15 22:29:37 +0200
commit619d480014f814ae1c4e264418412688c2ed18f4 (patch)
tree030411feb82d899c3f3368e49b030b68e3560e52
parent694e9de8abe24156268e1851fee0e59d1868218b (diff)
downloadaur-619d480014f814ae1c4e264418412688c2ed18f4.tar.gz
npm and electron cache in srcdir
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD6
2 files changed, 4 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 38ef8e00b7d5..620f27cfac22 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = notion-app
pkgdesc = The all-in-one workspace for your notes and tasks
pkgver = 2.0.16
- pkgrel = 4
+ pkgrel = 5
epoch = 2
url = https://www.notion.so/desktop
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 095477262c43..70f7a95bca51 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Jaime Martínez Rincón <jaime@jamezrin.name>
pkgname=notion-app
pkgver=2.0.16
-pkgrel=4
+pkgrel=5
epoch=2
pkgdesc="The all-in-one workspace for your notes and tasks"
arch=('i686' 'x86_64')
@@ -34,14 +34,14 @@ build() {
msg "Recreating package node_modules..."
rm -r node_modules
- npm install
+ HOME="$srcdir/.electron-gyp" npm install --cache "${srcdir}/npm-cache"
node_modules/.bin/patch-package
msg "Converting app icon..."
convert "icon.ico[0]" "icon.png" >/dev/null
msg "Building electron package..."
- npm install electron@11 electron-builder --save-dev
+ npm install electron@11 electron-builder --save-dev --cache "${srcdir}/npm-cache"
node_modules/.bin/electron-builder --linux dir
cd "${srcdir}"