From d9456cd7f3749bf566f36fde167722191b411e06 Mon Sep 17 00:00:00 2001 From: d235j Date: Thu, 8 Jan 2015 11:27:57 -0500 Subject: [PATCH] Added phantomjs fixes for ARM --- community/phantomjs/PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 community/phantomjs/PKGBUILD diff --git a/community/phantomjs/PKGBUILD b/community/phantomjs/PKGBUILD new file mode 100644 index 000000000..388365208 --- /dev/null +++ b/community/phantomjs/PKGBUILD @@ -0,0 +1,46 @@ +# $Id$ +# Maintainer: Felix Yan +# Contributor: grimsock +# Contributor: Dieter Plaetinck +# Contributor: Vladimir Chizhov +# Contributor: Henry Tang + +# ALARM: Kevin Mihelich +# - Just say NO to x86 optimizations, and no neon +# - added -fno-strict-volatile-bitfields to CXXFLAGS to fix ARM bug + + +pkgname=phantomjs +pkgver=1.9.8 +pkgrel=1 +pkgdesc="Headless WebKit with JavaScript API" +url="http://www.phantomjs.org/" +license=('BSD' 'LGPL' 'MIT') +arch=('i686' 'x86_64') +depends=('gstreamer0.10-base' 'fontconfig' 'freetype2' 'gcc-libs') +makedepends=('git') +source=("git+https://github.com/ariya/${pkgname}.git#tag=$pkgver") + +build() { + cd $pkgname + + # workaround for http://code.google.com/p/phantomjs/issues/detail?id=635 + sed -i 's/QMAKE_LFLAGS+=-fuse-ld=gold/#QMAKE_LFLAGS+=-fuse-ld=gold/' src/qt/src/3rdparty/webkit/Source/common.pri + + export CXXFLAGS="$CXXFLAGS -fno-strict-volatile-bitfields" + + ./build.sh --confirm --qt-config \ + "-no-rpath -no-mmx -no-3dnow -no-sse -no-sse2 -no-sse3 -no-ssse3 -no-sse4.1 -no-sse4.2 -no-avx -no-neon" +} + +package() { + install -Dm755 "$srcdir/$pkgname/bin/phantomjs" "$pkgdir/usr/bin/phantomjs" + + mkdir -p "$pkgdir/usr/share/$pkgname" + cp -r "$srcdir/$pkgname/examples" "$pkgdir/usr/share/$pkgname"/ + + install -Dm644 "$srcdir/$pkgname/LICENSE.BSD" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.BSD" + install -Dm644 "$srcdir/$pkgname/third-party.txt" "$pkgdir/usr/share/licenses/$pkgname/third-party.txt" +} + +sha512sums=('SKIP')