# Description: PDF Widges Qt6 plugins # URL: https://www.qt.io/ # Maintainer: Petar Petrov, slackalaxy at gmail dot com # Depends on: icu keyutils nodejs openjpeg2 qt6-declarative # Conflicts: qt6-webengine name=qt6-pdfwidgets version=6.7.3 release=1 source=(https://download.qt.io/official_releases/qt/${version%.*}/$version/submodules/qtwebengine-everywhere-src-$version.tar.xz) build() { prt-get isinst ninja && PKGMK_QT6+=' -G Ninja' prt-get isinst ccache && PKGMK_QT6+=' -D QT_USE_CCACHE=ON' && PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')" cmake -S qtwebengine-everywhere-src-$version -B build -G Ninja $PKGMK_QT6 \ -D CMAKE_BUILD_TYPE=Release \ -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \ -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \ -D QT_FEATURE_qtwebengine_build=OFF cmake --build build DESTDIR=$PKG cmake --install build }