summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavan Rikhi2017-06-04 00:34:49 -0400
committerPavan Rikhi2017-06-04 00:34:49 -0400
commit92e13c3b22cb722f7bb3a35bac52c6c816ee508c (patch)
tree37637480c47d4a63b7cd61f19d004a446d642c07
parentc867009b266c41a66d2774716b0b0667e6733f5b (diff)
downloadaur-92e13c3b22cb722f7bb3a35bac52c6c816ee508c.tar.gz
Fix Builds For Users With No Home Directory
NPM assumes it is able to write a cache to $HOME/.npm, which fails if the user has no home directory. This is fixed by changing the cache directory to `npm-cache` in the package's source directory.
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD4
2 files changed, 5 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index fe7850e1e82..16a9eeffc9e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Sat May 27 23:16:24 UTC 2017
+# Sun Jun 4 04:34:07 UTC 2017
pkgbase = pencil
pkgdesc = Sketching and GUI prototyping/wireframing tool
pkgver = 3.0.2
- pkgrel = 3
+ pkgrel = 4
url = http://github.com/evolus/pencil
arch = any
license = GPL2
@@ -15,7 +15,7 @@ pkgbase = pencil
source = pencil.desktop
source = pencil-mime.xml
sha256sums = afcbd3809e0ff4ca03579d8cc5123e4bedccf759a76e6f8d2187c62e1e97a6dc
- sha256sums = 0aef760218db19f2b2988f0d16c40e2864ad0b06f9959695ace448f409ec1c58
+ sha256sums = 6d467da74509e74e06325e7464a6a177164ae8977470423da6cae43265dedd4d
sha256sums = 87aac9f5005ccd57aa6b1bf190052fcc4915eff1d7bddb2723863739545e42fc
pkgname = pencil
diff --git a/PKGBUILD b/PKGBUILD
index 7fde4277e71..200cff67082 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Pavan Rikhi <pavan.rikhi@gmail.com>
pkgname=pencil
pkgver=3.0.2
-pkgrel=3
+pkgrel=4
pkgdesc="Sketching and GUI prototyping/wireframing tool"
arch=('any')
license=('GPL2')
@@ -18,7 +18,7 @@ depends=('nodejs' 'npm')
package() {
cd "$srcdir/$pkgname-$pkgver"
- npm install
+ npm install --cache "$srcdir/npm-cache"
node_modules/.bin/build --linux dir
install -d "$pkgdir/usr/share/$pkgname/" "$pkgdir/usr/bin" \