opt/qt6-webengine/Pkgfile

40 lines
2.0 KiB
Plaintext
Raw Normal View History

# Description: Provides support for web applications using the Chromium browser project
# URL: https://www.qt.io/
# Maintainer: Danny Rawlins, crux at romster dot me
2022-11-16 20:14:08 +01:00
# Depends on: ffmpeg icu libevent libva libvpx libwebp minizip nodejs nss pciutils python3-html5lib python3-six qt6-positioning qt6-tools qt6-webchannel re2 snappy xorg-libxcomposite xorg-libxcursor xorg-libxkbfile
# Optional: dav1d fdk-aac gnutls graphite2 keyutils krb5 lame lcms2 libpcre2 libvdpau numactl pipewire x264 x265
name=qt6-webengine
2023-01-06 15:50:38 +01:00
version=6.4.2
release=1
2022-05-30 21:16:03 +02:00
source=(https://download.qt.io/official_releases/qt/${version%.*}/$version/submodules/qtwebengine-everywhere-src-$version.tar.xz
qt6-webengine-system-icu.patch)
build() {
prt-get isinst ninja && PKGMK_QT6+=' -G Ninja'
prt-get isinst krb5 && PKGMK_QT6+=' -D QT_FEATURE_webengine_kerberos=ON'
prt-get isinst pipewire && PKGMK_QT6+=' -D QT_FEATURE_webengine_webrtc_pipewire=ON'
# use ccache if found on system and in PATH, else use sccache if found on system
prt-get isinst ccache && echo "${PATH}" | grep '/usr/lib/ccache' && \
PKGMK_QT6+=' -D QT_USE_CCACHE=ON' && PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')"
prt-get isinst sccache && echo "${PATH}" | grep --invert-match '/usr/lib/ccache' && \
PKGMK_QT6+=' -D CMAKE_C_COMPILER_LAUNCHER=sccache -D CMAKE_CXX_COMPILER_LAUNCHER=sccache'
2022-06-20 12:59:40 +02:00
#patch -Np1 -d qtwebengine-everywhere-src-$version/src/3rdparty -i $SRC/qt6-webengine-system-icu.patch
2022-02-27 03:29:17 +01:00
2022-05-30 21:16:03 +02:00
PYTHON=/usr/bin/python3 \
cmake -S qtwebengine-everywhere-src-$version -B build $PKGMK_QT6 \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
-D CMAKE_TOOLCHAIN_FILE=/usr/lib/cmake/Qt6/qt.toolchain.cmake \
-D QT_FEATURE_webengine_system_ffmpeg=ON \
-D QT_FEATURE_webengine_system_icu=ON \
2022-05-30 21:16:03 +02:00
-D QT_FEATURE_webengine_system_libevent=ON \
-D QT_FEATURE_webengine_proprietary_codecs=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
}