summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavan Rikhi2017-06-04 04:42:49 -0400
committerPavan Rikhi2017-06-04 04:42:49 -0400
commit895f304c93beba446a3188abf52f4e80f666fdea (patch)
tree63b368b5ca324f59d485f379a75d2cea11e89eb6
parent49d3f76f48702fa5aa53b46036e83a93e5501569 (diff)
downloadaur-895f304c93beba446a3188abf52f4e80f666fdea.tar.gz
Try Another Fix for Users With No Home Directory
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD16
-rw-r--r--electron-builder.yml2
3 files changed, 10 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4ffa5750028..fb93bc6a753 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Sun Jun 4 08:05:52 UTC 2017
+# Sun Jun 4 08:42:39 UTC 2017
pkgbase = pencil
pkgdesc = Sketching and GUI prototyping/wireframing tool
pkgver = 3.0.2
- pkgrel = 5
+ pkgrel = 6
url = http://github.com/evolus/pencil
arch = any
license = GPL2
@@ -14,11 +14,9 @@ pkgbase = pencil
source = https://github.com/evolus/pencil/archive/v3.0.2.tar.gz
source = pencil.desktop
source = pencil-mime.xml
- source = electron-builder.yml
sha256sums = afcbd3809e0ff4ca03579d8cc5123e4bedccf759a76e6f8d2187c62e1e97a6dc
sha256sums = 6d467da74509e74e06325e7464a6a177164ae8977470423da6cae43265dedd4d
sha256sums = 87aac9f5005ccd57aa6b1bf190052fcc4915eff1d7bddb2723863739545e42fc
- sha256sums = c99b50ffcb234db6a0f1d48a0a344a31f6b2936b9808a7f35ef799d1f6d58e9c
pkgname = pencil
diff --git a/PKGBUILD b/PKGBUILD
index d981df7c629..d5664691622 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,28 +1,28 @@
# Maintainer: Pavan Rikhi <pavan.rikhi@gmail.com>
pkgname=pencil
pkgver=3.0.2
-pkgrel=5
+pkgrel=6
pkgdesc="Sketching and GUI prototyping/wireframing tool"
arch=('any')
license=('GPL2')
url="http://github.com/evolus/pencil"
source=("https://github.com/evolus/pencil/archive/v$pkgver.tar.gz"
"pencil.desktop"
- "pencil-mime.xml"
- "electron-builder.yml")
+ "pencil-mime.xml")
sha256sums=('afcbd3809e0ff4ca03579d8cc5123e4bedccf759a76e6f8d2187c62e1e97a6dc'
'6d467da74509e74e06325e7464a6a177164ae8977470423da6cae43265dedd4d'
- '87aac9f5005ccd57aa6b1bf190052fcc4915eff1d7bddb2723863739545e42fc'
- 'c99b50ffcb234db6a0f1d48a0a344a31f6b2936b9808a7f35ef799d1f6d58e9c')
+ '87aac9f5005ccd57aa6b1bf190052fcc4915eff1d7bddb2723863739545e42fc')
conflicts=('evolus-pencil-bin' 'pencil-v2')
depends=('nodejs' 'npm')
package() {
- cp electron-builder.yml "$srcdir/$pkgname-$pkgver"
cd "$srcdir/$pkgname-$pkgver"
- npm install --cache "$srcdir/npm-cache" --prefix "$(pwd)"
- node_modules/.bin/build --linux dir
+ TMP_HOME="$(pwd)/tmp-home"
+ mkdir -p "$TMP_HOME"
+
+ XDG_CONFIG_HOME="$TMP_HOME" HOME="$TMP_HOME" npm install
+ XDG_CONFIG_HOME="$TMP_HOME" 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"
diff --git a/electron-builder.yml b/electron-builder.yml
deleted file mode 100644
index 98e8d8bb149..00000000000
--- a/electron-builder.yml
+++ /dev/null
@@ -1,2 +0,0 @@
-electronDownload:
- cache: ./electron-cache