summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavan Rikhi2017-06-04 13:28:43 -0400
committerPavan Rikhi2017-06-04 13:28:43 -0400
commitf9161fe5bf15a9fbcc156d3f999b429df41ccb51 (patch)
tree2e81c64a52a9034d9c38858523e4fe34b6931a11
parent895f304c93beba446a3188abf52f4e80f666fdea (diff)
downloadaur-f9161fe5bf15a9fbcc156d3f999b429df41ccb51.tar.gz
One More Attempt At Fixing Home-less Builds
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD14
2 files changed, 11 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index fb93bc6a753..1f380ccdea9 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Sun Jun 4 08:42:39 UTC 2017
+# Sun Jun 4 17:28:31 UTC 2017
pkgbase = pencil
pkgdesc = Sketching and GUI prototyping/wireframing tool
pkgver = 3.0.2
- pkgrel = 6
+ pkgrel = 7
url = http://github.com/evolus/pencil
arch = any
license = GPL2
diff --git a/PKGBUILD b/PKGBUILD
index d5664691622..5a02236a652 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Pavan Rikhi <pavan.rikhi@gmail.com>
pkgname=pencil
pkgver=3.0.2
-pkgrel=6
+pkgrel=7
pkgdesc="Sketching and GUI prototyping/wireframing tool"
arch=('any')
license=('GPL2')
@@ -18,11 +18,15 @@ depends=('nodejs' 'npm')
package() {
cd "$srcdir/$pkgname-$pkgver"
- TMP_HOME="$(pwd)/tmp-home"
- mkdir -p "$TMP_HOME"
+ if [ -d "$HOME" ]; then
+ TMP_HOME="$HOME"
+ else
+ TMP_HOME="$(pwd)/tmp-home"
+ mkdir -p "$TMP_HOME/.config"
+ fi
- XDG_CONFIG_HOME="$TMP_HOME" HOME="$TMP_HOME" npm install
- XDG_CONFIG_HOME="$TMP_HOME" HOME="$TMP_HOME" node_modules/.bin/build --linux dir
+ HOME="$TMP_HOME" npm install
+ HOME="$TMP_HOME" node_modules/.bin/build --linux dir
install -d "$pkgdir/usr/share/$pkgname/" "$pkgdir/usr/bin" \
"$pkgdir/usr/share/applications" "$pkgdir/usr/share/mime/packages"