2016-03-27 18:30:28 +00:00
|
|
|
# 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-08-14 18:29:11 +00:00
|
|
|
# - patch to link with libatomic on v5/v6
|
2017-06-17 14:49:29 +00:00
|
|
|
# - disable jit on v5/v6
|
2019-05-22 19:31:24 +00:00
|
|
|
# - use tarball source
|
2017-06-17 14:49:29 +00:00
|
|
|
|
|
|
|
highmem=1
|
2016-03-27 18:30:28 +00:00
|
|
|
|
|
|
|
pkgname=qt5-webkit
|
2019-07-01 02:11:09 +00:00
|
|
|
_pkgver=5.212.0-alpha3
|
|
|
|
pkgver=${_pkgver/-/}
|
2019-07-02 02:09:20 +00:00
|
|
|
pkgrel=3
|
2017-11-17 23:32:01 +00:00
|
|
|
arch=(x86_64)
|
2019-02-04 13:43:19 +00:00
|
|
|
url='https://www.qt.io'
|
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'
|
2019-07-01 02:11:09 +00:00
|
|
|
source=("https://github.com/qtwebkit/qtwebkit/releases/download/qtwebkit-$_pkgver/qtwebkit-$_pkgver.tar.xz"
|
|
|
|
'atomic.patch')
|
|
|
|
depends=(qt5-location qt5-sensors qt5-webchannel libwebp libxslt libxcomposite gst-plugins-base hyphen woff2)
|
|
|
|
makedepends=(cmake ruby gperf python2 qt5-doc qt5-tools)
|
2016-03-27 18:30:28 +00:00
|
|
|
optdepends=('gst-plugins-good: Webm codec support')
|
2019-07-01 02:11:09 +00:00
|
|
|
sha256sums=('357eee582445574472e410ebece632d06fa0ec94358fc4345f2a713922df5e17'
|
2017-08-14 18:29:11 +00:00
|
|
|
'23fbd785daf116c71b3ce87d40860f0a6c56ab1065ee98ec41634626ca961129')
|
2016-03-27 18:30:28 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
mkdir -p build
|
2017-07-04 15:02:09 +00:00
|
|
|
|
2017-08-14 18:29:11 +00:00
|
|
|
if [[ $CARCH == "arm" || $CARCH == "armv6h" ]]; then
|
2019-07-01 13:05:01 +00:00
|
|
|
cd qtwebkit-$_pkgver
|
2017-08-14 18:29:11 +00:00
|
|
|
patch -p0 -i ../atomic.patch
|
|
|
|
fi
|
2016-03-27 18:30:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
2019-07-01 12:48:12 +00:00
|
|
|
cmake ../qtwebkit-$_pkgver \
|
2017-06-17 14:49:29 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
2019-07-02 02:09:20 +00:00
|
|
|
-DCMAKE_CXX_FLAGS="${CXXFLAGS} -DNDEBUG" \
|
2017-06-17 14:49:29 +00:00
|
|
|
-DPORT=Qt \
|
|
|
|
-DENABLE_TOOLS=OFF \
|
2017-08-14 18:29:11 +00:00
|
|
|
$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}
|
|
|
|
}
|