summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Ser2020-01-31 13:06:28 +0100
committerSimon Ser2020-01-31 13:06:28 +0100
commit26689a71bb68366296a8c251a7fcadbe6b182e3b (patch)
tree2c90fb8faa36e3b6af5435c9700712a3db1cc32e
parentaf8574799d0c25752f097dcf9f71b38dd2d0257f (diff)
downloadaur-26689a71bb68366296a8c251a7fcadbe6b182e3b.tar.gz
Use separate npm cache, use fixed length commit hash
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD6
2 files changed, 4 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 683f2b5dec2..60f47ee168d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = protonmail-web-git
pkgdesc = Official AngularJS web client for the ProtonMail secure email service
- pkgver = r4782.81406ede
+ pkgver = r6108.8c0ee480c83d
pkgrel = 1
url = https://github.com/ProtonMail/WebClient
arch = any
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
}