summaryrefslogtreecommitdiff
path: root/qt6-webengine/Pkgfile
blob: ca9f2d0d28892c4a44f36e0443e2c3fc721c73d2 (plain)
    1 # Description: Provides support for web applications using the Chromium browser project
    2 # URL: https://www.qt.io/
    3 # Maintainer: Danny Rawlins, crux at romster dot me
    4 # Depends on: ffmpeg icu libevent libva libvpx libwebp minizip nodejs nss pciutils python3-html5lib python3-six qt6-location qt6-tools qt6-webchannel re2 snappy xorg-libxcomposite xorg-libxcursor xorg-libxkbfile
    5 # Optional: dav1d fdk-aac gnutls graphite2 keyutils krb5 lame lcms2 libpcre2 libvdpau numactl pipewire x264 x265
    6 
    7 name=qt6-webengine
    8 version=6.3.0
    9 release=1
   10 source=(https://download.qt.io/official_releases/qt/${version%.*}/$version/submodules/qtwebengine-everywhere-src-$version.tar.xz
   11   qt6-webengine-system-icu.patch)
   12 
   13 build() {
   14 	prt-get isinst ninja && PKGMK_QT6+=' -G Ninja'
   15 	prt-get isinst krb5 && PKGMK_QT6+=' -D QT_FEATURE_webengine_kerberos=ON'
   16 	prt-get isinst pipewire && PKGMK_QT6+=' -D QT_FEATURE_webengine_webrtc_pipewire=ON'
   17 
   18 	# use ccache if found on system and in PATH, else use sccache if found on system
   19 	prt-get isinst ccache && echo "${PATH}" | grep '/usr/lib/ccache' && \
   20 		PKGMK_QT6+=' -D QT_USE_CCACHE=ON' && PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')"
   21 	prt-get isinst sccache && echo "${PATH}" | grep --invert-match '/usr/lib/ccache' && \
   22 		PKGMK_QT6+=' -D CMAKE_C_COMPILER_LAUNCHER=sccache -D CMAKE_CXX_COMPILER_LAUNCHER=sccache'
   23 
   24 	patch -Np1 -d qtwebengine-everywhere-src-$version/src/3rdparty -i $SRC/qt6-webengine-system-icu.patch
   25 
   26 	PYTHON=/usr/bin/python3 \
   27 	cmake -S qtwebengine-everywhere-src-$version -B build $PKGMK_QT6 \
   28 		-D CMAKE_BUILD_TYPE=Release \
   29 		-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
   30 		-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
   31 		-D CMAKE_TOOLCHAIN_FILE=/usr/lib/cmake/Qt6/qt.toolchain.cmake \
   32 		-D QT_FEATURE_webengine_system_ffmpeg=ON \
   33 		-D QT_FEATURE_webengine_system_icu=ON \
   34 		-D QT_FEATURE_webengine_system_libevent=ON \
   35 		-D QT_FEATURE_webengine_proprietary_codecs=ON \
   36 		-Wno-dev
   37 	cmake --build build
   38 	DESTDIR=$PKG cmake --install build
   39 }

Generated by cgit