diff --git a/qt/build_qt.sh b/qt/build_qt.sh new file mode 100644 index 0000000..4c13770 --- /dev/null +++ b/qt/build_qt.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +# This script is meant to make it easy to rebuild packages using the +# linux-fresh yuzu-emu container. + +# Run this from within the source directory + +THIS=$(readlink -e $0) +USER_ID=${1} +GROUP_ID=${2} +VERSION=5_15_2 +BASE_NAME=$(readlink -e $(pwd) | sed 's/.*\///g') +ARCHIVE_NAME=${BASE_NAME}_${VERSION}.tar.xz +NUM_CORES=$(nproc) + + +mkdir build || true +cd build +mkdir out || true +../configure -opensource -confirm-license -prefix $(pwd)/out +make -j${NUM_CORES} NINJAJOBS=-j${NUM_CORES} +make -j${NUM_CORES} install DESTDIR=out + + +mkdir -pv ${BASE_NAME}/ +mv -v build/out/* ${BASE_NAME}/ +cp -v ${THIS} ${BASE_NAME}/ + +tar cv ${BASE_NAME} | xz -c > ${ARCHIVE_NAME} + +if [ -e ${ARCHIVE_NAME} ]; then + echo "hidapi package can be found at $(readlink -e ${ARCHIVE_NAME})" +fi + diff --git a/qt/qt5_5_15_2.tar.xz b/qt/qt5_5_15_2.tar.xz new file mode 100644 index 0000000..5d8fa87 Binary files /dev/null and b/qt/qt5_5_15_2.tar.xz differ diff --git a/qt/start_build.sh b/qt/start_build.sh new file mode 100644 index 0000000..80b4efd --- /dev/null +++ b/qt/start_build.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +# Kicks off the build script using the linux-fresh build container. + +if [ "$#" -ne 2 ]; then + echo "usage: $0 " + exit +fi +UID=`id -u` +GID=`id -g` + +SRC_DIR=$(readlink -e $1) +SRC_DIR_BASENAME=$(basename ${SRC_DIR}) +SCRIPT=$(readlink -e $2) +SCRIPT_BASENAME=$(basename ${SCRIPT}) + +cp ${SCRIPT} ${SRC_DIR} +docker run -v ${SRC_DIR}:/${SRC_DIR_BASENAME} -w /${SRC_DIR_BASENAME} -u root -t yuzuemu/build-environments:linux-fresh /bin/bash /${SRC_DIR_BASENAME}/${SCRIPT_BASENAME} ${UID} ${GID} +exit +SRC_DIR=${SRC_DIR}/qtwebengine +docker run -v ${SRC_DIR}:/${SRC_DIR_BASENAME} -w /${SRC_DIR_BASENAME} -u root -t yuzuemu/build-environments:linux-fresh /bin/bash /${SRC_DIR_BASENAME}/${SCRIPT_BASENAME} ${UID} ${GID} +