Added builds for QtPositioning, QtSockets, and QtWebChannel for QtWebEngine

This commit is contained in:
dslm4515
2025-09-12 20:40:47 -05:00
parent 3e30cf3138
commit 10fb27158e
3 changed files with 174 additions and 0 deletions

View File

@ -0,0 +1,58 @@
#! /bin/bash
# Qt6 QtPositioning
# Source: https://download.qt.io/official_releases/qt/6.9/6.9.1/submodules/qtpositioning-everywhere-src-6.9.1.tar.xz
#
# $BUILD = Directory to temporarily install
# $PKGS = Directory to store built packages
#
# DEPS
# Required: qt6-qtbase qt6-qtwebsockets cmake
# Recommended: NONE
# Optional: NONE
export PVER="6.9.1"
# Configure source
cmake -B OUT -DCMAKE_INSTALL_PREFIX=/opt/qt6 \
-DCMAKE_BUILD_TYPE="Release" \
-DINSTALL_BINDIR=/opt/qt6/bin \
-DINSTALL_DOCDIR=/opt/qt6/share \
-DINSTALL_ARCHDATADIR=/opt/opt6/lib \
-DINSTALL_DATADIR=/opt/qt6/share \
-DINSTALL_INCLUDEDIR=/opt/qt6/include \
-DINSTALL_MKSPECSDIR=/opt/qt6/lib//mkspecs \
-DCMAKE_FIND_ROOT_PATH=/opt/Xorg:/opt/qt6 \
-DINSTALL_EXAMPLESDIR=/opt/qt6/share/doc/qt6/examples \
-G Ninja
# 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-qtpositioning: qt6-qtpositioning
qt6-qtpositioning:
qt6-qtpositioning: Provides access to position, satellite and area monitoring classes
qt6-qtpositioning:
qt6-qtpositioning: https://download.qt.io
qt6-qtpositioning:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/qt6-qtpositioning-$PVER-$PSUFFIX &&
sudo -S rm -rf ${BUILD}/*

View File

@ -0,0 +1,58 @@
#! /bin/bash
# Qt6 QtWebsockets
# Source: https://download.qt.io/official_releases/qt/6.9/6.9.1/submodules/qtwebsockets-everywhere-src-6.9.1.tar.xz
#
# $BUILD = Directory to temporarily install
# $PKGS = Directory to store built packages
#
# DEPS
# Required: qt6-qtbase cmake
# Recommended: NONE
# Optional: NONE
export PVER="6.9.1"
# Configure source
cmake -B OUT -DCMAKE_INSTALL_PREFIX=/opt/qt6 \
-DCMAKE_BUILD_TYPE="Release" \
-DINSTALL_BINDIR=/opt/qt6/bin \
-DINSTALL_DOCDIR=/opt/qt6/share \
-DINSTALL_ARCHDATADIR=/opt/opt6/lib \
-DINSTALL_DATADIR=/opt/qt6/share \
-DINSTALL_INCLUDEDIR=/opt/qt6/include \
-DINSTALL_MKSPECSDIR=/opt/qt6/lib//mkspecs \
-DCMAKE_FIND_ROOT_PATH=/opt/Xorg:/opt/qt6 \
-DINSTALL_EXAMPLESDIR=/opt/qt6/share/doc/qt6/examples \
-G Ninja
# 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-qtwebsockets: qt6-qtwebsockets
qt6-qtwebsockets:
qt6-qtwebsockets: Provides WebSocket communication compliant with RFC 6455 for Qt6 "
qt6-qtwebsockets:
qt6-qtwebsockets: https://download.qt.io
qt6-qtwebsockets:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/qt6-qtwebsockets-$PVER-$PSUFFIX &&
sudo -S rm -rf ${BUILD}/*

View File

@ -0,0 +1,58 @@
#! /bin/bash
# Qt6 QtWebchannel
# Source: https://download.qt.io/official_releases/qt/6.9/6.9.1/submodules/qtwebchannel-everywhere-src-6.9.1.tar.xz
#
# $BUILD = Directory to temporarily install
# $PKGS = Directory to store built packages
#
# DEPS
# Required: qt6-qtbase qt6-qtwebsockets cmake
# Recommended: NONE
# Optional: NONE
export PVER="6.9.1"
# Configure source
cmake -B OUT -DCMAKE_INSTALL_PREFIX=/opt/qt6 \
-DCMAKE_BUILD_TYPE="Release" \
-DINSTALL_BINDIR=/opt/qt6/bin \
-DINSTALL_DOCDIR=/opt/qt6/share \
-DINSTALL_ARCHDATADIR=/opt/opt6/lib \
-DINSTALL_DATADIR=/opt/qt6/share \
-DINSTALL_INCLUDEDIR=/opt/qt6/include \
-DINSTALL_MKSPECSDIR=/opt/qt6/lib//mkspecs \
-DCMAKE_FIND_ROOT_PATH=/opt/Xorg:/opt/qt6 \
-DINSTALL_EXAMPLESDIR=/opt/qt6/share/doc/qt6/examples \
-G Ninja
# 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-qtwebchannel: qt6-qtwebchannel - Qt6 QtWebChannel
qt6-qtwebchannel:
qt6-qtwebchannel: Provides access to QObject or QML objects from HTML clients.
qt6-qtwebchannel:
qt6-qtwebchannel: https://download.qt.io
qt6-qtwebchannel:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/qt6-qtwebchannel-$PVER-$PSUFFIX &&
sudo -S rm -rf ${BUILD}/*