summaryrefslogtreecommitdiffstats
path: root/abs/core/qtwebkit/PKGBUILD
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-07 18:24:12 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-07 18:24:12 (GMT)
commit8e474318e398abdc93537d01ddf14420d164e91f (patch)
treee17e41a455e828de03cff68094d5cf01a9aa3aa3 /abs/core/qtwebkit/PKGBUILD
parent8cff87efa971141bf4670a7621b08975e6800945 (diff)
downloadlinhes_pkgbuild-8e474318e398abdc93537d01ddf14420d164e91f.zip
linhes_pkgbuild-8e474318e398abdc93537d01ddf14420d164e91f.tar.gz
linhes_pkgbuild-8e474318e398abdc93537d01ddf14420d164e91f.tar.bz2
qtwebkit 2.2.2
Diffstat (limited to 'abs/core/qtwebkit/PKGBUILD')
-rw-r--r--abs/core/qtwebkit/PKGBUILD106
1 files changed, 106 insertions, 0 deletions
diff --git a/abs/core/qtwebkit/PKGBUILD b/abs/core/qtwebkit/PKGBUILD
new file mode 100644
index 0000000..8c289f4
--- /dev/null
+++ b/abs/core/qtwebkit/PKGBUILD
@@ -0,0 +1,106 @@
+# $Id: PKGBUILD 159414 2012-05-23 22:31:17Z andrea $
+# Maintainer: Andrea Scarpino <andrea@archlinux.org>
+
+pkgname=qtwebkit
+pkgver=2.2.2
+pkgrel=1
+arch=('i686' 'x86_64')
+url='http://trac.webkit.org/wiki/QtWebKit'
+pkgdesc='An open source web browser engine (Qt port)'
+license=('LGPL2.1' 'GPL3')
+depends=('qt' 'gstreamer0.10-base')
+makedepends=('python2' 'mesa' 'gperf')
+conflicts=('qt<4.8')
+_qtver=4.8.2
+source=("ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}-source.tar.gz"
+ "ftp://ftp.archlinux.org/other/${pkgname}/qwebview-${_qtver}.tar.xz"
+ 'glibc.patch'
+ 'fix-build.patch')
+sha1sums=('914d7cc099e5b6181c2d74fc7a74e1b4478b75a4'
+ '33c83272ed8110180ee6e7e3733e68cc513e2802'
+ '9e47ba5725a2ebd072b8bff31fa2f71aa83f0333'
+ 'c6dfb001b0412a8adfcb7f1f565a24314a753448')
+
+build() {
+ cd "${srcdir}"/${pkgname}-${pkgver}-source
+
+ patch -p1 -i "${srcdir}"/glibc.patch
+ patch -p1 -i "${srcdir}"/fix-build.patch
+
+ # move headers
+ mv include Source/
+
+ cd Source
+ qmake
+ cd ../
+
+ make -C Source
+
+ # Build the QWebView plugin (FS#27914)
+ cd "${srcdir}"/${pkgname}-${pkgver}-source/qwebview-${_qtver}/plugins/qwebview
+ qmake
+ make
+}
+
+package() {
+ cd "${srcdir}"/${pkgname}-${pkgver}-source
+ make INSTALL_ROOT="${pkgdir}" -C Source install
+
+ cd "${srcdir}"/${pkgname}-${pkgver}-source/qwebview-${_qtver}/plugins/qwebview
+ make INSTALL_ROOT="${pkgdir}" install
+}
+
+_source() {
+ local _current_dir=$(pwd)
+ local _tmp=$(mktemp -d --tmpdir)
+
+ cd _tmp
+ git clone git://gitorious.org/+qtwebkit-developers/webkit/qtwebkit.git
+
+ # fetch the make-package.py script
+ git clone git://qt.gitorious.org/qtwebkit/tools.git
+
+ # create the qtwebkit tarball
+ cd qtwebkit
+ git checkout -b ${pkgname}-${pkgver} ${pkgname}-${pkgver}
+
+ sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+ ../tools/make-package.py
+ python2 ../tools/make-package.py
+
+ mv ${pkgname}-${pkgver}-source.tar.gz ${_current_dir}/
+
+ cd ..
+
+ # create the qwebview plugin tarball
+ mkdir qwebview-${_qtver}
+ cd qwebview-${_qtver}
+ wget http://releases.qt-project.org/qt4/source/qt-everywhere-opensource-src-${_qtver}.tar.gz
+ tar xf qt-everywhere-opensource-src-${_qtver}.tar.gz
+ mkdir -p ${pkgname}-${pkgver}-source/qwebview-${_qtver}/plugins/
+ cp -ra qt-everywhere-opensource-src-${_qtver}/tools/designer/src/plugins/qwebview \
+ ${pkgname}-${pkgver}-source/qwebview-${_qtver}/plugins/
+
+ cat > ${pkgname}-${pkgver}-source/qwebview-${_qtver}/plugins/plugins.pro <<"EOF"
+TEMPLATE = subdirs
+CONFIG += ordered
+
+REQUIRES = !CONFIG(static,shared|static)
+contains(QT_CONFIG, webkit): SUBDIRS += qwebview
+EOF
+
+ cat > $(_tmp)/header.txt <<"EOF"
+INCLUDEPATH += ../../../Source/include
+LIBS += -L../../../Source/lib
+
+EOF
+
+ cat $(_tmp)/header.txt qt-everywhere-opensource-src-${_qtver}/tools/designer/src/plugins/plugins.pri > \
+ ${pkgname}-${pkgver}-source/qwebview-${_qtver}/plugins/plugins.pri
+
+ tar cJf qwebview-${_qtver}.tar.xz ${pkgname}-${pkgver}-source
+
+ mv qwebview-${_qtver}.tar.xz ${_current_dir}/
+
+ rm -rf ${_tmp}
+}