From 9a98043eedebfb32a61fa030d536f2adb400a215 Mon Sep 17 00:00:00 2001 From: dslm4515 <27793627+dslm4515@users.noreply.github.com> Date: Sat, 13 Sep 2025 17:20:27 -0500 Subject: [PATCH] Added build for QtCharts Required by Dooble browser --- build-scripts/qt6-qtcharts.build | 51 ++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 build-scripts/qt6-qtcharts.build diff --git a/build-scripts/qt6-qtcharts.build b/build-scripts/qt6-qtcharts.build new file mode 100644 index 0000000..02b7793 --- /dev/null +++ b/build-scripts/qt6-qtcharts.build @@ -0,0 +1,51 @@ +#! /bin/bash + +# Qt6 QtCharts +# Source: https://download.qt.io/official_releases/qt/6.9/6.9.1/submodules/qtcharts-everywhere-src-6.9.1.tar.xz +# +# $BUILD = Directory to temporarily install +# $PKGS = Directory to store built packages +# +# DEPS +# Required: qt6-qtbase qt6-qtdeclarative cmake +# Recommended: NONE +# Optional: NONE + +export PVER="6.9.1" + +# Configure source +cmake -B OUT -DCMAKE_INSTALL_PREFIX=/opt/qt6 \ + -DCMAKE_BUILD_TYPE="Release" \ + -DCMAKE_FIND_ROOT_PATH="/opt/Xorg:/opt/qt6" \ + -G Ninja -Wno-dev + +# Compile +cmake --build OUT --parallel && + +# Install +sudo -E DESTDIR=$BUILD cmake --install OUT + +# Drop QMAKE_PRL_BUILD_DIR because reference the build dir + find "$BUILD/opt/qt6/lib" -type f -name '*.prl' \ + -exec sudo sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \; + +cd $BUILD && sudo -S mkdir -v ${BUILD}/install && +cat > /tmp/slack-desc << "EOF" +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +qt6-qtcharts: qt6-qtcharts - Qt6 QtCharts +qt6-qtcharts: +qt6-qtcharts: Provides Qt6 a set of easy to use chart components +qt6-qtcharts: +qt6-qtcharts: https://qt.io +qt6-qtcharts: +EOF +sudo -S mv -v /tmp/slack-desc install/ && +sudo -S makepkg -l y -c n $PKGS/qt6-qtcharts-$PVER-$PSUFFIX && +sudo -S rm -rf ${BUILD}/*