community/phantomjs to 2.0.0-1

This commit is contained in:
Kevin Mihelich 2015-02-27 12:16:08 +00:00
parent 9be2d95b6d
commit 557d631d61

View file

@ -1,5 +1,5 @@
# $Id$ # $Id$
# Maintainer: Felix Yan <felixonmars@gmail.com> # Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: grimsock <lord.grimsock at gmail dot com> # Contributor: grimsock <lord.grimsock at gmail dot com>
# Contributor: Dieter Plaetinck <dieter@plaetinck.be> # Contributor: Dieter Plaetinck <dieter@plaetinck.be>
# Contributor: Vladimir Chizhov <jagoterr@gmail.com> # Contributor: Vladimir Chizhov <jagoterr@gmail.com>
@ -9,27 +9,25 @@
# - Just say NO to x86 optimizations, and no neon # - Just say NO to x86 optimizations, and no neon
# - added -fno-strict-volatile-bitfields to CXXFLAGS to fix ARM bug # - added -fno-strict-volatile-bitfields to CXXFLAGS to fix ARM bug
pkgname=phantomjs pkgname=phantomjs
pkgver=1.9.8 pkgver=2.0.0
pkgrel=1 pkgrel=1
pkgdesc="Headless WebKit with JavaScript API" pkgdesc="Headless WebKit with JavaScript API"
url="http://www.phantomjs.org/" url="http://www.phantomjs.org/"
license=('BSD' 'LGPL' 'MIT') license=('BSD' 'LGPL' 'MIT')
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
depends=('gstreamer0.10-base' 'fontconfig' 'freetype2' 'gcc-libs') depends=('icu' 'libjpeg-turbo' 'libpng' 'freetype2' 'gperf' 'ruby' 'python2' 'gstreamer0.10-base')
makedepends=('git') makedepends=('git')
source=("git+https://github.com/ariya/${pkgname}.git#tag=$pkgver") source=("git+https://github.com/ariya/${pkgname}.git#tag=$pkgver")
build() { build() {
cd $pkgname 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" export CXXFLAGS="$CXXFLAGS -fno-strict-volatile-bitfields"
./build.sh --confirm --qt-config \ mkdir "$srcdir/python2-path"
ln -s /usr/bin/python2 "$srcdir/python2-path/python"
PATH="$srcdir/python2-path:$PATH" PYTHON=/usr/bin/python2 ./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" "-no-rpath -no-mmx -no-3dnow -no-sse -no-sse2 -no-sse3 -no-ssse3 -no-sse4.1 -no-sse4.2 -no-avx -no-neon"
} }