summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Landau2018-04-29 23:42:30 +0300
committerDaniel Landau2018-04-29 23:42:30 +0300
commite85aaf3700e9629466f879b884bb8e1a6cfc578d (patch)
tree6247a588a99007c94e91238f13196c01aa1a9518
parent15c96a1aef9b68329b589fd5049dc1a7555005c1 (diff)
downloadaur-e85aaf3700e9629466f879b884bb8e1a6cfc578d.tar.gz
Do electron-rebuild instead of the cross-env rebuild step
-rw-r--r--PKGBUILD8
1 files changed, 8 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
index b641bd982eb..995a02d8a5a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -20,9 +20,17 @@ md5sums=('2036001984b4d904cac87ac452ebfa66'
'bb315f14e6d7ef57976c8934ddad4fd9'
'3c73b5245f2da7dd2e31729e2b57ad37')
+prepare() {
+ cd "${srcdir}/${_upstream}-${pkgver}"
+ sed -i'' -e '/postinstall/d' package.json
+ sed -i'' -e '/"cross-script"/d' package.json
+}
+
build() {
cd "${srcdir}/${_upstream}-${pkgver}"
npm install
+ npm install electron-rebuild
+ ./node_modules/.bin/electron-rebuild
}
package() {