Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
pkg-scripts/qt-6.2.4-0.build.sh
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
70 lines (55 sloc)
1.74 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 |