diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 65 |
1 files changed, 31 insertions, 34 deletions
@@ -1,4 +1,6 @@ -# Maintainer: Chih-Hsuan Yen <yan12125@gmail.com> +# Maintainer: Michał Wojdyła < micwoj9292 at gmail dot com > +# Contributor: Felix Golatofski <contact@xdfr.de> +# Contributor: Chih-Hsuan Yen <yan12125@gmail.com> # Contributor: Felix Yan <felixonmars@archlinux.org> # Contributor: grimsock <lord.grimsock at gmail dot com> # Contributor: Dieter Plaetinck <dieter@plaetinck.be> @@ -7,54 +9,49 @@ pkgname=phantomjs pkgver=2.1.1 -pkgrel=12 +_debver=2.1.1+dfsg +_debrel=2 +pkgrel=17 pkgdesc='Headless WebKit with JavaScript API' -url='http://www.phantomjs.org/' +url='https://www.phantomjs.org/' license=('BSD' 'LGPL' 'MIT') arch=('i686' 'x86_64') -depends=('icu' 'libjpeg-turbo' 'libpng' 'fontconfig' 'gperf' 'ruby' 'python2' 'openssl-1.0') -makedepends=('git') -_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) +depends=('gcc-libs' 'glibc' 'qt5-base' 'qt5-webkit') +makedepends=('python' 'quilt') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ariya/phantomjs/archive/${pkgver}.tar.gz" + "https://deb.debian.org/debian/pool/main/p/phantomjs/phantomjs_$_debver-$_debrel.debian.tar.xz" + fix-missing-webkit-include-files.patch) sha512sums=('07b769133957c5194c9afdaa347bd9a019ebe47653f98adf17a35d3dd12714d2f8e3773ced91d7d99f31cb18d7f73167022d5b0a3906d9aac0732ef96341f5ec' - 'bdbe5fe69a5b0348632cfc9cd21c49c7334c34ecf9a603e3f94d3f456e6327b3036c00a05d37f064d49788ae062adfcf25f2258083d3099f7ee1ce6d3ed813e8' - '232f7060509a6615a2cd4fe71f22b32cf4b25f32a46d4dc3fa9e22d8c396c90389aabb63d43c76005bb779820f5d5555dbeb0d30054e1780619e0efd1807b272' - 'e349a14c5d32e5627f28be6ebd20104370ec6b7f086f670e7f19b484b38839220cfeb49178765f38d918d05fb889bbc990f8a3809db6d9e1cbde0af5b9dd923b') + 'f2dc95aa1a4c3c68b7400a068224b529d80a985911a3da5354a8eef08319cdcca21065fd470542b52132eb4f5d8fd699e58cba3e840d4662948ee290f8b22ef9' + '0bb57e7f2dee65717bd58006a361556c64b92f0dfb83a7c0fa6691da8f7a3757f7da1575af5108bead5d78505e53779bd10463d928daa5031e653856aca131a8') prepare() { cd $pkgname-$pkgver + if [[ ${pkgver%.*} = ${_debver%.*} ]]; then + # Debian patches + export QUILT_PATCHES=debian/patches + export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index' + export QUILT_DIFF_ARGS='--no-timestamps' - rmdir src/qt/qt{base,webkit} - ln -s ../../../qtbase-$_qtbase_commit src/qt/qtbase - ln -s ../../../qtwebkit-$_qtwebkit_commit src/qt/qtwebkit + mv "$srcdir"/debian . - patch -Np1 -d src/qt/qtwebkit <../icu59.patch - mkdir "$srcdir/python2-path" - ln -s /usr/bin/python2 "$srcdir/python2-path/python" - - # syncqt creates forwarded header files (include/QtCore/...). Normally, it's - # run in git checkouts and skipped in stable versions as forwarded headers - # are pre-generated. In this package, Qt mistakenly thinks this is a stable - # version as .git is missing, so we need to run this command manually. - cd src/qt/qtbase - ./bin/syncqt.pl -minimal -module QtCore "$srcdir/$pkgname-$pkgver/src/qt/qtbase" + quilt push -av + fi +# mkdir "$srcdir/python2-path" +# ln -s /usr/bin/python2 "$srcdir/python2-path/python" + patch -p1 -i ../fix-missing-webkit-include-files.patch } build() { 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' +# export PATH="$srcdir/python2-path:$PATH" 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' --qt-config='-verbose' + python build.py --skip-git --skip-qtbase --skip-qtwebkit --confirm --release } package() { |