# Maintainer: Natanael Copa pkgname=qt5-qtwebengine pkgver=5.12.4 pkgrel=1 pkgdesc="Qt5 - QtWebEngine components" url="http://qt-project.org/" # ppc64le, s390x: not supported arch="all !ppc64le !s390x" license="LGPL-2.0 with exceptions or GPL-3.0 with exceptions" depends="" depends_dev="qt5-qtdeclarative-dev qt5-qtwebchannel-dev gstreamer-dev gst-plugins-base-dev libxslt-dev mesa-dev icu-dev libxext-dev glib-dev libxcomposite-dev libxrender-dev ninja ffmpeg-dev " makedepends="$depends_dev alsa-lib-dev bison bsd-compat-headers ffmpeg-dev flex fontconfig-dev gperf gzip harfbuzz-dev icu-dev jsoncpp-dev libevent-dev libjpeg-turbo-dev libpng-dev libsrtp-dev libvpx-dev libwebp-dev libxcursor-dev libxi-dev libxml2 libxrandr-dev libxslt libxtst-dev linux-headers nss-dev opus-dev paxmark pcre-dev protobuf-dev qt5-qtbase-dev re2-dev ruby snappy-dev sqlite-dev yasm-dev zlib-dev " subpackages="$pkgname-dev" _ver=${pkgver/_/-} _ver=${_ver/beta0/beta} _ver=${_ver/rc0/rc} _V=${_ver/rc/RC} case $pkgver in *_beta*|*_rc*) _rel=development_releases;; *) _rel=official_releases;; esac source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/qtwebengine-everywhere-src-$_V.tar.xz arm-void-is-not-android.patch qt-musl-dispatch_to_musl.patch qt-musl-execinfo.patch qt-musl-mallinfo.patch qt-musl-off_t.patch qt-musl-pvalloc.patch qt-musl-resolve.patch qt-musl-serialio.patch qt-musl-siginfo_t.patch qt-musl-fpstate.patch qt-musl-pread-pwrite.patch qt-musl-sysreg-for__WORDSIZE.patch qt-musl-stackstart.patch qt-musl-thread-stacksize.patch musl-sandbox.patch yasm-nls.patch " builddir="$srcdir"/qtwebengine-everywhere-src-$_V build() { cd "$builddir" export NINJA_PATH="/usr/bin/ninja" qmake-qt5 QMAKE_EXTRA_ARGS+="-webengine-ffmpeg -webengine-opus -webengine-webp" make || paxmark -m src/core/release/mksnapshot && make } package() { cd "$builddir" make install INSTALL_ROOT="$pkgdir" || return 1 # remove rpath # chrpath --delete "$pkgdir"/usr/lib/qt5/libexec/* || return 1 sed -i -e 's:-L/home[^ ]\+::g' "$pkgdir"/usr/lib/pkgconfig/*.pc } sha512sums="312c584222ed5e7183af2be8a4f42b84c7fed18c3d4b080bc32bed1bd5c7dc88c9752deaf7afc1b4d9fcd02c8c8a013d32d5be2e7635fec2c085cdbe81998de8 qtwebengine-everywhere-src-5.12.4.tar.xz 5e017e6500af56d0e608839c466782193ab3f6e5d01938b84b7f9c86fbb826e140f9fca789a23e7a7431ba42377be328a8bfcacbf7c302746de79f7857f2832d arm-void-is-not-android.patch 5ecbf435062b8565322dd1cbd0cbdb44f3daef264ab677fe22fe8cb400d4bb22281cc607ea419c7362c483312482632ed41bd67130413188425ef6e0ae184f07 qt-musl-dispatch_to_musl.patch 982550095ccebc49b15f71bddc7c7373e8bc1aa88cbc6db0e8984c31d02760e6ed8ec635f5e16faa022cc312f354fc6811d3cd2438e20561be565f3c00bebc67 qt-musl-execinfo.patch f580239dc09ba0592ddcba8225411baef9c2116fb4d401bdf0327f3567d9c2428f33bb1fd1ec21f4d8208fb0c9aff70263b77ff5041eb289ea1375790901eebc qt-musl-mallinfo.patch 7eba28eb015f1a7e5cf70e9354fcd647b69f4e7c061b889a8c0d55f4a94a033f95d0252f9baebf13c3d501438074a05d547eef2c8cf898dc2c87cec3b60e76e0 qt-musl-off_t.patch ac563e0c444a6d3214ff7465cad2c701692cfa90408c57243d3ae9459937c36e88acd57335bb90da85157e03865faaf17d61a767483b00ed8f3580ebf8a2fbb5 qt-musl-pvalloc.patch 8d95e4fcb463b5d2053c9538e66150ec9a3acddd7815cc34c8cd6fa115e49f1d602c4f1fc73f5e507a932c918e36c9c3d1386476dca91c5fc422906d0d88f610 qt-musl-resolve.patch c39b4c39ad3e297dc4f2508af9fb6b1618e8f6fac4399e41b5bde00a1e79cc0cd24af8b8c01bfe61e4748b2b74778a06afff166095e59baf491d6fc56f3537f7 qt-musl-serialio.patch 2fead16e7d7379b622da0e3172905444d9d72d1a53ff080327a3d59f60541c5c076d9b58f110b039da8c9ebc3b5efec53af118e1172efd01886ff9ac2b730d5f qt-musl-siginfo_t.patch 059f22a594a046d552a33b17d811c50b645c4be11a49ed3b29a32ce38d501fd07c1e15a4e1075c46f984c850bf88aecb357e4310a62b30494ea25297055f05c8 qt-musl-fpstate.patch b1f7823d0bdd14dbcb4dbd72ab2d16460d343722d2601921a50f8912ce580a632e0d7b01d7fea6f27ff5014a1f21595c6d8d4500b995bcc6db38cbd10ac4aa96 qt-musl-pread-pwrite.patch 987b9b35d04317e22ae2cce382e776f3309fc7fd4588e408cd6bed846f47620d01e2b9958cb60c84b8f6f496de6544a21ba399ba8b8f107b73df179794740092 qt-musl-sysreg-for__WORDSIZE.patch 7dc3e9995596adef65cd96f650eb7ee13d52cabfe6353f04eeb5b8a5776e7e0585ffc2a0a31deea6924352ee9a5a8e03ac37432b558c6a46f3dc457b4283392a qt-musl-stackstart.patch b37fbc4df03c82123f94982039defa12d9bb8c885c9dcf8fff556b5f9cc58182fa471f970cc3a5e2d5dbe964855f591b474366b6a8926d94ae6a78e883811c1a qt-musl-thread-stacksize.patch 76b1966bdd76fd22f0073b23be50f69fb95451e06bdce567a439b0fbb69ff2956264704f5b53c50842e9c4aafaab7d2f330465a04092b66c5965e5d0ae2c7761 musl-sandbox.patch f6b1941e40f44b675ab554166e3cd8d3272b23f48571b4949b3af7b8e1c642ee84fe0ee26dd2457fc3bf20e9924cddb411e293b7a8a103029ee196587371a1e2 yasm-nls.patch"