summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavan Rikhi2019-08-18 13:53:58 -0400
committerPavan Rikhi2019-08-18 13:53:58 -0400
commit98dd89aea4f008e7425c576b3ad451e9ddf9cea6 (patch)
treeb6dd5b944c862a39c77f054a71efe51acd77b833
parent0023623819e7890442807793cb0c6986f637cd66 (diff)
downloadaur-98dd89aea4f008e7425c576b3ad451e9ddf9cea6.tar.gz
Fix Segmentation Fault Caused by NPM Dependencies
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD9
2 files changed, 9 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2b709f0405b..e9b646fc3eb 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,7 @@
-# Generated by mksrcinfo v8
-# Mon Sep 18 13:54:53 UTC 2017
pkgbase = pencil
pkgdesc = Sketching and GUI prototyping/wireframing tool
pkgver = 3.0.4
- pkgrel = 2
+ pkgrel = 3
url = http://github.com/evolus/pencil
arch = any
license = GPL2
diff --git a/PKGBUILD b/PKGBUILD
index 770cdc6bbdd..8c475cd8692 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Pavan Rikhi <pavan.rikhi@gmail.com>
pkgname=pencil
pkgver=3.0.4
-pkgrel=2
+pkgrel=3
pkgdesc="Sketching and GUI prototyping/wireframing tool"
arch=('any')
license=('GPL2')
@@ -25,6 +25,13 @@ package() {
mkdir -p "$TMP_HOME/.config"
fi
+ # Temporary fix for segfaults until next Pencil release(3.0.5+)
+ HOME="$TMP_HOME" npm i -s electron@"==1.8"
+ cd app/
+ HOME="$TMP_HOME" npm i -s unzipper
+ sed -i 's/unzip2/unzipper/' app.js
+ cd ..
+
HOME="$TMP_HOME" npm install --unsafe-perm
HOME="$TMP_HOME" node_modules/.bin/build --linux dir