summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavan Rikhi2017-06-04 04:11:13 -0400
committerPavan Rikhi2017-06-04 04:11:13 -0400
commit49d3f76f48702fa5aa53b46036e83a93e5501569 (patch)
tree7d006d761d33c70d79492d6c3cb1561dc2647870
parent92e13c3b22cb722f7bb3a35bac52c6c816ee508c (diff)
downloadaur-49d3f76f48702fa5aa53b46036e83a93e5501569.tar.gz
Fix Electron Download Location For Users With No Home Directory
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD11
-rw-r--r--electron-builder.yml2
3 files changed, 13 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 16a9eeffc9e..4ffa5750028 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Sun Jun 4 04:34:07 UTC 2017
+# Sun Jun 4 08:05:52 UTC 2017
pkgbase = pencil
pkgdesc = Sketching and GUI prototyping/wireframing tool
pkgver = 3.0.2
- pkgrel = 4
+ pkgrel = 5
url = http://github.com/evolus/pencil
arch = any
license = GPL2
@@ -14,9 +14,11 @@ 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 200cff67082..d981df7c629 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,24 +1,27 @@
# Maintainer: Pavan Rikhi <pavan.rikhi@gmail.com>
pkgname=pencil
pkgver=3.0.2
-pkgrel=4
+pkgrel=5
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")
+ "pencil-mime.xml"
+ "electron-builder.yml")
sha256sums=('afcbd3809e0ff4ca03579d8cc5123e4bedccf759a76e6f8d2187c62e1e97a6dc'
'6d467da74509e74e06325e7464a6a177164ae8977470423da6cae43265dedd4d'
- '87aac9f5005ccd57aa6b1bf190052fcc4915eff1d7bddb2723863739545e42fc')
+ '87aac9f5005ccd57aa6b1bf190052fcc4915eff1d7bddb2723863739545e42fc'
+ 'c99b50ffcb234db6a0f1d48a0a344a31f6b2936b9808a7f35ef799d1f6d58e9c')
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"
+ npm install --cache "$srcdir/npm-cache" --prefix "$(pwd)"
node_modules/.bin/build --linux dir
install -d "$pkgdir/usr/share/$pkgname/" "$pkgdir/usr/bin" \
diff --git a/electron-builder.yml b/electron-builder.yml
new file mode 100644
index 00000000000..98e8d8bb149
--- /dev/null
+++ b/electron-builder.yml
@@ -0,0 +1,2 @@
+electronDownload:
+ cache: ./electron-cache