Files
BMLFS/build-scripts/qt6-qtdeclarative.build
dslm4515 0e180b2d52 Upgraded Qt6 from 6.6.1 to 6.7.2
Upgrades QtBase, QtDeclarative, QtShaderTools, QtSVG, QtTools, and Qt6-Qt5-compat
2024-08-09 12:14:28 -05:00

57 lines
2.0 KiB
Bash

#! /bin/bash
# Qt6 QtDeclarative
# Source: https://download.qt.io/official_releases/qt/6.7/6.7.2/submodules/qtdeclarative-everywhe
# re-src-6.7.2.tar.xz
#
# $BUILD = Directory to temporarily install
# $PKGS = Directory to store built packages
#
# DEPS
# Required: qt6-qtbase qt6-qtshadertools cmake vulkan-headers
# Recommended: NONE
# Optional: qt6-qtlanguageserver
# Configure source
CFLAGS="-Wl,-rpath=/opt/qt6/lib:/opt/Xorg/lib:/opt/openssl/lib" \
CXXFLAGS=$CFLAGS \
cmake -B OUT -DCMAKE_INSTALL_PREFIX=/opt/qt6 \
-DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_FIND_ROOT_PATH=/opt/Xorg:/opt/qt6 \
-G Ninja
# Compile
# LibreSSL is not supported
LD_LIBRARY_PATH=/opt/Xorg/lib:/opt/openssl/lib \
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-qtdeclarative: qt6-qtdeclarative - QtDeclarative module
qt6-qtdeclarative:
qt6-qtdeclarative: Part of a cross-platform application and UI framework callled Qt(6.x)
qt6-qtdeclarative:
qt6-qtdeclarative: Classes for QML and JavaScript languages
qt6-qtdeclarative:
qt6-qtdeclarative: https://download.qt.io
qt6-qtdeclarative:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/qt6-qtdeclarative-6.7.2-$PSUFFIX &&
sudo -S rm -rf ${BUILD}/*