summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorSimon Ser2020-01-31 13:06:28 +0100
committerSimon Ser2020-01-31 13:06:28 +0100
commit26689a71bb68366296a8c251a7fcadbe6b182e3b (patch)
tree2c90fb8faa36e3b6af5435c9700712a3db1cc32e /PKGBUILD
parentaf8574799d0c25752f097dcf9f71b38dd2d0257f (diff)
downloadaur-protonmail-web-git.tar.gz
Use separate npm cache, use fixed length commit hash
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD6
1 files changed, 3 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ecc4e30dad0..22813ceeff0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: emersion <contact emersion fr>
pkgname=protonmail-web-git
_pkgname=protonmail-web
-pkgver=r4782.81406ede
+pkgver=r6108.8c0ee480c83d
pkgrel=1
license=('MIT')
pkgdesc='Official AngularJS web client for the ProtonMail secure email service'
@@ -15,13 +15,13 @@ conflicts=('protonmail-web')
pkgver() {
cd "${srcdir}/${_pkgname}"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=12 HEAD)"
}
build() {
cd "${srcdir}/${_pkgname}"
export NODE_ENV=dist
- npm install
+ npm install --cache "${srcdir}/npm-cache"
npm run build --api=prod
}