PKGBUILDs/extra/qt5-webkit/PKGBUILD

66 lines
2.4 KiB
Bash
Raw Normal View History

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
# - use tarball source
2017-06-17 14:49:29 +00:00
highmem=1
2016-03-27 18:30:28 +00:00
pkgname=qt5-webkit
2020-03-10 08:45:31 +00:00
_pkgver=5.212.0-alpha4
2019-07-01 02:11:09 +00:00
pkgver=${_pkgver/-/}
2021-04-17 19:26:11 +00:00
pkgrel=10
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"
2020-12-22 15:12:40 +00:00
icu68.patch
2021-04-17 19:26:11 +00:00
glib-2.68.patch
2020-11-22 17:42:09 +00:00
qt5-webkit-python-3.9.patch::"https://github.com/qtwebkit/qtwebkit/commit/78360c01.patch"
qt5-webkit-bison-3.7.patch::"https://github.com/qtwebkit/qtwebkit/commit/d92b11fe.patch"
2019-07-01 02:11:09 +00:00
'atomic.patch')
depends=(qt5-location qt5-sensors qt5-webchannel libwebp libxslt libxcomposite gst-plugins-base hyphen woff2)
2020-03-10 08:45:31 +00:00
makedepends=(cmake ruby gperf python qt5-doc qt5-tools)
2016-03-27 18:30:28 +00:00
optdepends=('gst-plugins-good: Webm codec support')
2020-03-10 08:45:31 +00:00
sha256sums=('9ca126da9273664dd23a3ccd0c9bebceb7bb534bddd743db31caf6a5a6d4a9e6'
2020-12-22 15:12:40 +00:00
'0b40ed924f03ff6081af610bb0ee01560b7bd1fb68f8af02053304a01d4ccdf0'
2021-04-17 19:26:11 +00:00
'4969dd03e482155e2490b50307dada81dda7bbc9e5398e3a53c20bc474f7c04e'
2020-11-22 17:42:09 +00:00
'9db5480dfbd3c440489e8e4131e3555b2af61fa4b6c19f35227588c5996be128'
'cc5a2b762426e9cda5a3ae056bba266b5f775ee75c0590913839c255d5f10db0'
2017-08-14 18:29:11 +00:00
'23fbd785daf116c71b3ce87d40860f0a6c56ab1065ee98ec41634626ca961129')
2016-03-27 18:30:28 +00:00
prepare() {
2020-12-22 15:12:40 +00:00
cd qtwebkit-$_pkgver
patch -p0 -i ../icu68.patch # Fix build with ICU 68.x
2021-04-17 19:26:11 +00:00
patch -p1 -i ../glib-2.68.patch # https://github.com/qtwebkit/qtwebkit/issues/1057
2020-12-22 15:12:40 +00:00
patch -p1 -i ../qt5-webkit-python-3.9.patch # Fix build with python 3.9
patch -p1 -i ../qt5-webkit-bison-3.7.patch # Fix build with bison 3.7
2017-08-14 18:29:11 +00:00
if [[ $CARCH == "arm" || $CARCH == "armv6h" ]]; then
patch -p0 -i ../atomic.patch
fi
2016-03-27 18:30:28 +00:00
}
build() {
2017-06-17 14:49:29 +00:00
[[ $CARCH == "arm" || $CARCH == "armv6h" ]] && CONFIG="-DENABLE_JIT=OFF"
2016-03-27 18:30:28 +00:00
2020-11-22 17:42:09 +00:00
cmake -B build -S 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
2020-11-22 17:42:09 +00:00
cmake --build build
2016-03-27 18:30:28 +00:00
}
package() {
2020-11-22 17:42:09 +00:00
DESTDIR="$pkgdir" cmake --install build
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}
}