summaryrefslogtreecommitdiff
path: root/pcr/phantomjs
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2018-08-22 08:14:29 +0200
committerAndreas Grapentin <andreas@grapentin.org>2018-08-22 08:14:29 +0200
commitefb6c2443247b326174540091b7717f7b1a80948 (patch)
treefde064e5faaa976ac8d822a17b67f7610affabb3 /pcr/phantomjs
parent99877e1559d15566b947d17cf852e08202777a26 (diff)
pcr/phantomjs: updated to 2.1.1
Diffstat (limited to 'pcr/phantomjs')
-rw-r--r--pcr/phantomjs/PKGBUILD58
1 files changed, 37 insertions, 21 deletions
diff --git a/pcr/phantomjs/PKGBUILD b/pcr/phantomjs/PKGBUILD
index cf93077d3..551127025 100644
--- a/pcr/phantomjs/PKGBUILD
+++ b/pcr/phantomjs/PKGBUILD
@@ -1,5 +1,5 @@
-# $Id$
-# Maintainer (AUR): Felix Yan <felixonmars@archlinux.org>
+# Maintainer (AUR): Chih-Hsuan Yen <yan12125@gmail.com>
+# Contributor (AUR): Felix Yan <felixonmars@archlinux.org>
# Contributor (AUR): grimsock <lord.grimsock at gmail dot com>
# Contributor (AUR): Dieter Plaetinck <dieter@plaetinck.be>
# Contributor (AUR): Vladimir Chizhov <jagoterr@gmail.com>
@@ -7,45 +7,61 @@
pkgname=phantomjs
pkgver=2.1.1
-pkgrel=11
-pkgdesc="Headless WebKit with JavaScript API"
-url="http://www.phantomjs.org/"
+pkgrel=13
+pkgdesc='Headless WebKit with JavaScript API'
+url='http://www.phantomjs.org/'
license=('BSD' 'LGPL' 'MIT')
-arch=('x86_64' 'i686')
-depends=('icu>=61' 'icu<62' 'libjpeg-turbo' 'libpng' 'fontconfig' 'gperf' 'ruby' 'python2' 'openssl-1.0')
+arch=('i686' 'x86_64')
+depends=('icu' 'libjpeg-turbo' 'libpng' 'fontconfig' 'gperf' 'ruby' 'python2' 'openssl-1.0')
+depends+=('icu>=62' 'icu<63')
makedepends=('git')
-source=("git+https://github.com/ariya/${pkgname}.git#tag=$pkgver"
+_qtbase_commit=b5cc0083a5766e773885e8dd624c51a967c17de0
+_qtwebkit_commit=e7b74331d695bfa8b77e39cdc50fc2d84a49a22a
+source=("$pkgname-$pkgver.tar.gz"::"https://github.com/ariya/phantomjs/archive/$pkgver.tar.gz"
+ "$pkgname-qtbase-$_qtbase_commit.tar.gz"::"https://github.com/Vitallium/qtbase/archive/$_qtbase_commit.tar.gz"
+ "$pkgname-qtwebkit-$_qtwebkit_commit.tar.gz"::"https://github.com/Vitallium/qtwebkit/archive/$_qtwebkit_commit.tar.gz"
icu59.patch)
-sha512sums=('SKIP'
+sha512sums=('07b769133957c5194c9afdaa347bd9a019ebe47653f98adf17a35d3dd12714d2f8e3773ced91d7d99f31cb18d7f73167022d5b0a3906d9aac0732ef96341f5ec'
+ 'bdbe5fe69a5b0348632cfc9cd21c49c7334c34ecf9a603e3f94d3f456e6327b3036c00a05d37f064d49788ae062adfcf25f2258083d3099f7ee1ce6d3ed813e8'
+ '232f7060509a6615a2cd4fe71f22b32cf4b25f32a46d4dc3fa9e22d8c396c90389aabb63d43c76005bb779820f5d5555dbeb0d30054e1780619e0efd1807b272'
'e349a14c5d32e5627f28be6ebd20104370ec6b7f086f670e7f19b484b38839220cfeb49178765f38d918d05fb889bbc990f8a3809db6d9e1cbde0af5b9dd923b')
prepare() {
- cd $pkgname
- git submodule update --init
+ cd $pkgname-$pkgver
+
+ rmdir src/qt/qt{base,webkit}
+ mv ../qtbase-$_qtbase_commit src/qt/qtbase
+ mv ../qtwebkit-$_qtwebkit_commit src/qt/qtwebkit
+ # Make qt build like a git clone
+ # https://bugreports.qt.io/browse/QTBUG-32397
+ mkdir src/qt/qt{base,webkit}/.git
+
patch -Np1 -d src/qt/qtwebkit <../icu59.patch
mkdir "$srcdir/python2-path"
ln -s /usr/bin/python2 "$srcdir/python2-path/python"
}
build() {
- cd $pkgname
- export PATH="$srcdir/python2-path:$PATH" PYTHON=/usr/bin/python2
- export CXXFLAGS+=" -I/usr/include/openssl-1.0"
+ cd $pkgname-$pkgver
+ export PATH="$srcdir/python2-path:$PATH"
+ export PYTHON=/usr/bin/python2
+ 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'
+ CXXFLAGS+=' -Wno-expansion-to-defined'
- python2 build.py --confirm --release --qt-config='-no-rpath'
+ python2 build.py --confirm --release --qt-config='-no-rpath' --qt-config='-verbose'
}
package() {
- install -Dm755 "$srcdir/$pkgname/bin/phantomjs" "$pkgdir/usr/bin/phantomjs"
+ cd $pkgname-$pkgver
+ install -Dm755 bin/phantomjs "$pkgdir/usr/bin/phantomjs"
mkdir -p "$pkgdir/usr/share/$pkgname"
- cp -r "$srcdir/$pkgname/examples" "$pkgdir/usr/share/$pkgname"/
+ cp -r 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"
+ install -Dm644 LICENSE.BSD "$pkgdir/usr/share/licenses/$pkgname/LICENSE.BSD"
+ install -Dm644 third-party.txt "$pkgdir/usr/share/licenses/$pkgname/third-party.txt"
}