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-5.12.7-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
61 lines (48 sloc)
1.45 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 | |
PKG=qt | |
VERSION=5.12.7 | |
BUILD=0 | |
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.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 | |
if [ -d $PREFIX/.compatlibs ]; then export LD_LIBRARY_PATH=$PREFIX/.compatlibs\${LD_LIBRARY_PATH:+:}\$LD_LIBRARY_PATH ; fi | |
EOF | |
. $PREFIX/profile | |
NPROC=$(( $(nproc) * 4 / 5 + 1 )) | |
BUILD=$PREFIX/build | |
mkdir -p $BUILD | |
cd $BUILD | |
# orig: https://download.qt.io/archive/qt/5.12/5.12.7/single/qt-everywhere-src-5.12.7.tar.xz | |
BEEHIVE=https://beehive.molgen.mpg.de/ce2c5661c028b9de6183245982d7c120/qt-everywhere-src-5.12.7.tar.xz | |
test -e qt-everywhere-src-5.12.7.tar.xz || wget -nv $BEEHIVE | |
test -d qt-everywhere-src-5.12.7 || tar -xf qt-everywhere-src-5.12.7.tar.xz | |
cd qt-everywhere-src-5.12.7 | |
# use bundled libevent | |
sed -e '/webengine-system-libevent/ s/=true\s*$/=false/' -i ./qtwebengine/src/core/config/linux.pri | |
./configure \ | |
-opensource \ | |
-confirm-license \ | |
-prefix ${PREFIX} \ | |
-R ${PREFIX}/lib \ | |
-nomake examples \ | |
-nomake tests \ | |
-nomake tools \ | |
-no-strip \ | |
-no-pch \ | |
-xcb \ | |
-qpa xcb \ | |
-opengl \ | |
-verbose | |
make -j $NPROC | |
make install | |
exit |