From fc3fee4443e5a06be2933b4102f0eb4d43482659 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 7 Feb 2018 22:30:38 +0100 Subject: community/electron: allow build for i686 (again) --- community/electron/PKGBUILD | 7 +++++++ community/electron/allow-i686.patch | 14 ++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 community/electron/allow-i686.patch diff --git a/community/electron/PKGBUILD b/community/electron/PKGBUILD index fea35930..c1f238b2 100644 --- a/community/electron/PKGBUILD +++ b/community/electron/PKGBUILD @@ -1,4 +1,11 @@ +source+=('allow-i686.patch') +sha256sums+=('c209475c16b506d8d888a54c8564718cf9775f450d1867e19e86a03d99a119be') + eval "$( + declare -f prepare | \ + sed ' + 3 a patch -Np1 -i "${srcdir}"/allow-i686.patch + ' declare -f build | \ sed ' \,^\s*script/bootstrap.py , s/py/py --target_arch=ia32/ diff --git a/community/electron/allow-i686.patch b/community/electron/allow-i686.patch new file mode 100644 index 00000000..154ab9bc --- /dev/null +++ b/community/electron/allow-i686.patch @@ -0,0 +1,14 @@ +--- a/script/update.py ++++ b/script/update.py +@@ -15,11 +15,6 @@ SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) + + def main(): + os.chdir(SOURCE_ROOT) +- +- if PLATFORM != 'win32' and platform.architecture()[0] != '64bit': +- print 'Electron is required to be built on a 64bit machine' +- return 1 +- + update_external_binaries() + return update_gyp() + -- cgit v1.2.3