# Description: Classes for QML and JavaScript languages # URL: https://www.qt.io/ # Maintainer: Danny Rawlins, crux at romster dot me # Depends on: at-spi2-core qt6-shadertools name=qt6-declarative version=6.3.2 release=1 source=(https://download.qt.io/official_releases/qt/${version%.*}/$version/submodules/qtdeclarative-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 qtdeclarative-everywhere-src-$version -B build $PKGMK_QT6 \ -D INSTALL_PUBLICBINDIR=usr/bin \ -D CMAKE_BUILD_TYPE=Release \ -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \ -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" cmake --build build DESTDIR=$PKG cmake --install build cd $PKG mkdir usr/bin while read _line; do ln -s $_line done < $SRC/build/user_facing_tool_links.txt }