This package can be built on armv7l too. I just built it on a Raspberry Pi 4 by applying this patch. Without the flag it would not compile because warnings are treated as errors.
diff --git a/PKGBUILD b/PKGBUILD
index 9bfded9..584c675 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,7 +14,7 @@ pkgrel=16
pkgdesc='Headless WebKit with JavaScript API'
url='http://www.phantomjs.org/'
license=('BSD' 'LGPL' 'MIT')
-arch=('i686' 'x86_64')
+arch=('armv7l')
depends=('icu' 'libjpeg-turbo' 'libpng' 'fontconfig' 'gperf' 'ruby' 'python2' 'openssl-1.0' 'qt5-webkit')
makedepends=('quilt')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ariya/phantomjs/archive/${pkgver}.tar.gz"
@@ -47,8 +47,8 @@ build() {
export CXXFLAGS+=' -I/usr/include/openssl-1.0'
export OPENSSL_LIBS='-L/usr/lib/openssl-1.0 -lssl -lcrypto'
- CFLAGS+=' -Wno-expansion-to-defined'
- CXXFLAGS+=' -Wno-expansion-to-defined'
+ CFLAGS+=' -Wno-expansion-to-defined -Wno-vla-larger-than'
+ CXXFLAGS+=' -Wno-expansion-to-defined -Wno-vla-larger-than'
python2 build.py --skip-git --skip-qtbase --skip-qtwebkit --confirm --release
}
Pinned Comments
yan12125 commented on 2018-08-12 11:22 (UTC) (edited on 2019-11-19 03:17 (UTC) by yan12125)
FAQ
You can either to reinstall this package afte upgrading the system to ICU 62, or install the prebuilt package listed below.
A: PhantomJS ships with its own Qt and QtWebKit. Just be patient.