From d9d885d52a514e37e536bf832545a2f109edf6b0 Mon Sep 17 00:00:00 2001 From: thomas Date: Mon, 18 Jul 2022 16:58:32 +0200 Subject: [PATCH] qt: Add Qt 6.2.4 According to to Qt, 6.2 is the current LTS-branch. Have fun trying out. I expect the first serious projects will use Qt6 in a year or so. --- qt-6.2.4-0.build.sh | 70 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100755 qt-6.2.4-0.build.sh diff --git a/qt-6.2.4-0.build.sh b/qt-6.2.4-0.build.sh new file mode 100755 index 0000000..4aa3223 --- /dev/null +++ b/qt-6.2.4-0.build.sh @@ -0,0 +1,70 @@ +#! /bin/bash + +# COOKIE=$(mcookie|cut -c-8); grep -v V_GREP_ME $0 > /dev/shm/runme-$COOKIE.sh ; sleep 0.3; exec bash /dev/shm/runme-$COOKIE.sh +# TESTING=1 + +PKG=qt +VERSION=6.2.4 +BUILD=0 + +# ORIG https://download.qt.io/archive/qt/6.2/6.2.4/single/qt-everywhere-src-6.2.4.tar.xz +URL="https://beehive.molgen.mpg.de/7776375c14d8f0fdec31fcc51339d919/qt-everywhere-src-6.2.4.tar.xz" + +PREFIX=/pkg/$PKG-$VERSION-$BUILD +if [ -n "$TESTING" ]; then PREFIX=/dev/shm/$PKG-$VERSION-$BUILD ; fi + +set -xe +umask 022 + +BUILD_TMPDIR=/dev/shm/$PKG-$VERSION-$BUILD.$USER.build.tmp +test -d $BUILD_TMPDIR && ( chmod -R u+rwx $BUILD_TMPDIR || true ; rm -rf $BUILD_TMPDIR ) +mkdir -p $BUILD_TMPDIR/home +export TMPDIR=$BUILD_TMPDIR +export HOME=$BUILD_TMPDIR/home + +exec $PREFIX/profile <<-EOF + PATH=$PREFIX/bin:\$PATH + LD_LIBRARY_PATH=$PREFIX/lib\${LD_LIBRARY_PATH:+:}\$LD_LIBRARY_PATH + if [ -d $PREFIX/.compatlibs ]; then LD_LIBRARY_PATH=$PREFIX/.compatlibs\${LD_LIBRARY_PATH:+:}\$LD_LIBRARY_PATH ; fi + export LD_LIBRARY_PATH +EOF +. $PREFIX/profile + +cat > $PREFIX/README.cmake <<- EOF + # + # Qt6 brings a cmake wrapper called 'qt-cmake'. This one + # cares for 'CMAKE_TOOLCHAIN_FILE' + # + # Also useful might be the CMAKE_PREFIX_PATH setting, + # -D CMAKE_PREFIX_PATH=$PREFIX/lib/cmake + # + EOF + +BUILDDIR=$PREFIX/build + +mkdir -p $BUILDDIR +cd $BUILDDIR + +test -e qt-everywhere-src-$VERSION.tar.xz || wget --no-verbose $URL +test -d qt-everywhere-src-$VERSION || tar -xf qt-everywhere-src-$VERSION.tar.xz +cd qt-everywhere-src-$VERSION + +./configure \ + -confirm-license \ + -opensource \ + -prefix $PREFIX \ + -nomake examples \ + -nomake tests \ + -no-strip \ + -no-pch \ + -xcb \ + -qpa xcb \ + -opengl desktop + +cmake --build . --parallel +cmake --install . --prefix $PREFIX + +exit