Skip to content

Commit

Permalink
Merge pull request #203 from mariux64/add-qt-6.2.4
Browse files Browse the repository at this point in the history
qt: Add Qt 6.2.4
  • Loading branch information
thomas authored Jul 19, 2022
2 parents 1aa4492 + d9d885d commit 293a9dc
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions qt-6.2.4-0.build.sh
Original file line number Diff line number Diff line change
@@ -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 </dev/null

mkdir -p $PREFIX
cat > $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

0 comments on commit 293a9dc

Please sign in to comment.