* update qt5-webkit to 5.212.0alpha4-26

This commit is contained in:
Alexander Baldeck 2024-09-12 19:49:48 +02:00
parent f85e9652f6
commit ea8f658126

View File

@ -1,37 +1,49 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer (aur): Felix Yan <felixonmars@archlinux.org>
# Maintainer (aur): Antonio Rojas <arojas@archlinux.org>
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org>
# Contributor: Zen Wen <zen.8841@gmail.com>
# Contributor: Felix Yan <felixonmars@archlinux.org>
# Contributor: Antonio Rojas <arojas@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# parabola changes and rationale:
# - blacklist rescue for webengine clients which support alternate backends (redmine #1167)
# - pin to strongly-coupled dependency versions
pkgname=qt5-webkit
_pkgver=5.212.0-alpha4
_basever=5.15.3
pkgver=${_pkgver/-/}
pkgrel=19.1
arch=(x86_64 armv7h i686 powerpc64le powerpc64 powerpc riscv64)
url='https://github.com/qtwebkit/qtwebkit'
license=(GPL3 LGPL3 FDL custom)
pkgdesc='Classes for a WebKit2 based implementation and a new QML API'
source=("https://github.com/qtwebkit/qtwebkit/releases/download/qtwebkit-$_pkgver/qtwebkit-$_pkgver.tar.xz"
pkgrel=26
arch=(x86_64 aarch64 powerpc64le powerpc64 powerpc riscv64)
url="https://github.com/qtwebkit/qtwebkit"
license=(LGPL2.1)
pkgdesc="Classes for a WebKit2 based implementation and a new QML API"
source=("https://github.com/qtwebkit/qtwebkit/releases/download/qtwebkit-$_pkgver/qtwebkit-${_pkgver}.tar.xz"
"https://src.fedoraproject.org/rpms/qt5-qtwebkit/raw/rawhide/f/qtwebkit-cstdint.patch"
"https://src.fedoraproject.org/rpms/qt5-qtwebkit/raw/rawhide/f/qtwebkit-fix-build-gcc14.patch"
https://src.fedoraproject.org/rpms/qt5-qtwebkit/raw/rawhide/f/webkit-offlineasm-warnings-ruby27.patch
"qt5-webkit-icu75.patch::https://github.com/qtwebkit/qtwebkit/commit/756e1c8f23dc2720471298281c421c0076d02df8.patch"
icu68.patch
glib-2.68.patch
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
qt5-webkit-python-3.9.patch
qt5-webkit-bison-3.7.patch
jscore_big_endian.diff
ppc-llint.patch
reduce-exports.patch
riscv64.patch
no_pdf_image_plugin.diff
qt5-webkit-gcc13.patch)
depends=(qt5-location qt5-sensors qt5-webchannel libwebp libxslt libxcomposite gst-plugins-base hyphen woff2)
makedepends=(cmake ruby gperf python qt5-doc qt5-tools)
makedepends_powerpc=(lld)
)
depends=(qt5-location qt5-sensors qt5-webchannel libwebp libxcomposite gst-plugins-base hyphen woff2
# namcap implicit depends
glibc gcc-libs glib2 zlib libx11 sqlite gst-plugins-base-libs libjpeg-turbo icu libpng gstreamer libxml2
qt5-base qt5-declarative)
# libxslt
depends+=(libicuuc.so libicui18n.so)
makedepends=(cmake ruby ruby-erb gperf python qt5-doc qt5-tools)
optdepends=('gst-plugins-good: Webm codec support')
options=(!lto)
sha256sums=('9ca126da9273664dd23a3ccd0c9bebceb7bb534bddd743db31caf6a5a6d4a9e6'
'4c71c958eae45cae65c9f002024eb1369d06029b668e595158138ff7971e64f1'
'eea38db22078700887bf22b6a49bb628fd8444cdb2e506770c993df883d0e8fb'
'8768433ff3f641b506962ed22cc596eaf57bf21b6d3402e0e73ad8c2afeaa502'
'b4d1ba1e99e28fd8cb1ec82252373c870ede683869a9cd43c8e465fe09531bcb'
'0b40ed924f03ff6081af610bb0ee01560b7bd1fb68f8af02053304a01d4ccdf0'
'4969dd03e482155e2490b50307dada81dda7bbc9e5398e3a53c20bc474f7c04e'
'6e0cee08e4fa57b04752e80817f33562f48aa42608a3a620930b6040259b4932'
@ -40,23 +52,29 @@ sha256sums=('9ca126da9273664dd23a3ccd0c9bebceb7bb534bddd743db31caf6a5a6d4a9e6'
'51a3756bdd5605d58b031edecc2bde4059e4c1c33de959f9b3b2ee9b17e39ab9'
'1bdd5391655036672e833892a182234d4827b52d9e1414a3f45847d3f4776d00'
'2e08b75a159514e35ff90c8a5bcfc42a39b6f13bec0f332334e9cb7c246cf1db'
'70de08deba306a6aa9c4853c2ae75eb09b9f32298bd404c601f2c7ba4d7ca1d9'
'2495ade25ebe64cc68eeecf27dd6d5f739ba8aeb199cd75773d7639fb17950cf')
options=(!lto !distcc)
'70de08deba306a6aa9c4853c2ae75eb09b9f32298bd404c601f2c7ba4d7ca1d9')
prepare() {
cd qtwebkit-$_pkgver
cd "qtwebkit-${_pkgver}"
patch -p0 -i ../icu68.patch # Fix build with ICU 68.x
patch -p1 -i ../glib-2.68.patch # https://github.com/qtwebkit/qtwebkit/issues/1057
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
patch -p1 -i ../qtwebkit-cstdint.patch # gcc 11.1
patch -p1 -i ../qtwebkit-fix-build-gcc14.patch # GCC 14.1
patch -p1 -i ../qt5-webkit-icu75.patch
patch -p1 -i ../jscore_big_endian.diff
patch -p1 -i ../ppc-llint.patch
patch -p1 -i ../reduce-exports.patch
patch -p1 -i ../riscv64.patch
patch -p1 -i ../no_pdf_image_plugin.diff
patch -p1 -i ../qt5-webkit-gcc13.patch
#patch -Np1 -i ../qtwebkit-ruby3.2.patch
#echo "Done patch for Ruby 3.2"
patch -Np1 -i ../webkit-offlineasm-warnings-ruby27.patch
echo "Done patch for Ruby 3.2"
}
build() {
@ -76,8 +94,7 @@ build() {
;;
powerpc)
export LDFLAGS=" -Wl,--no-keep-memory"
_cmake_options+=(-DUSE_LD_GOLD=OFF
-DUSE_SYSTEM_MALLOC=ON)
_cmake_options+=(-DUSE_SYSTEM_MALLOC=ON)
;;
riscv64)
export CXXFLAGS+=" -latomic"
@ -85,21 +102,19 @@ build() {
;;
esac
cmake -B build -S qtwebkit-$_pkgver \
cmake -B build -S "qtwebkit-${_pkgver}" -Wno-dev \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_CXX_FLAGS="${CXXFLAGS} -DNDEBUG" \
-DPORT=Qt \
-DUSE_LD_GOLD=OFF \
-DENABLE_XSLT=OFF \
-DENABLE_TOOLS=OFF ${_cmake_options[@]}
cmake --build build
# disabling XSLT to build https://github.com/qtwebkit/qtwebkit/issues/1097
}
package() {
depends+=(qt5-base)
DESTDIR="$pkgdir" cmake --install build
install -d "$pkgdir"/usr/share/licenses
ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname}
DESTDIR="${pkgdir}" cmake --install build
}