PKGBUILDs/extra/qt5-webkit/PKGBUILD

55 lines
1.5 KiB
Bash
Raw Normal View History

2016-03-27 18:30:28 +00:00
# $Id: PKGBUILD 240297 2015-06-03 10:22:03Z fyan $
# Maintainer: Felix Yan <felixonmars@archlinux.org>
2017-06-17 14:49:29 +00:00
# Maintainer: Antonio Rojas <arojas@archlinux.org>
2016-03-27 18:30:28 +00:00
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2017-06-17 14:49:29 +00:00
# - disable jit on v5/v6
# - disable OpenGL
highmem=1
2016-03-27 18:30:28 +00:00
pkgname=qt5-webkit
2017-06-17 14:49:29 +00:00
_qtver=5.212.0-alpha2
2016-03-27 18:30:28 +00:00
pkgver=${_qtver/-/}
2017-06-08 23:43:16 +00:00
pkgrel=1
2017-06-17 14:49:29 +00:00
arch=(i686 x86_64)
2016-03-27 18:30:28 +00:00
url='http://qt-project.org/'
2017-06-17 14:49:29 +00:00
license=(GPL3 LGPL3 FDL custom)
2016-03-27 18:30:28 +00:00
pkgdesc='Classes for a WebKit2 based implementation and a new QML API'
2017-06-17 14:49:29 +00:00
depends=(qt5-location qt5-sensors qt5-webchannel libwebp libxslt libxcomposite gst-plugins-base hyphen)
makedepends=(cmake ruby gperf python2 qt5-doc qt5-tools)
2016-03-27 18:30:28 +00:00
optdepends=('gst-plugins-good: Webm codec support')
2017-06-17 14:49:29 +00:00
conflicts=(qt5-webkit-ng)
replaces=(qt5-webkit-ng)
groups=(qt qt5)
2017-06-08 23:43:16 +00:00
_pkgfqn="${pkgname/5-/}-opensource-src-${_qtver}"
2017-06-17 14:49:29 +00:00
source=("https://github.com/annulen/webkit/releases/download/qtwebkit-$_qtver/qtwebkit-$_qtver.tar.xz")
sha256sums=('f8f901de567e11fc5659402b6b827eac75505ff9c5072d8e919aa306003f8f8a')
2016-03-27 18:30:28 +00:00
prepare() {
mkdir -p build
}
build() {
2017-06-17 14:49:29 +00:00
cd build
[[ $CARCH == "arm" || $CARCH == "armv6h" ]] && CONFIG="-DENABLE_JIT=OFF"
2016-03-27 18:30:28 +00:00
2017-06-17 14:49:29 +00:00
cmake ../qtwebkit-$_qtver \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DPORT=Qt \
-DENABLE_TOOLS=OFF \
-DENABLE_OPENGL=OFF $CONFIG
2016-03-27 18:30:28 +00:00
make
}
package() {
cd build
2017-06-17 14:49:29 +00:00
make DESTDIR="$pkgdir" install
2016-03-27 18:30:28 +00:00
install -d "$pkgdir"/usr/share/licenses
ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname}
}