File indexing completed on 2025-01-05 04:33:33

0001 #!/bin/bash
0002 
0003 set -e
0004 
0005 project_root="$(readlink -f "$(dirname "$0")/../..")"
0006 cd "$project_root"
0007 
0008 rm -rf /home/devel/build
0009 mkdir -p /home/devel/build/nsis
0010 
0011 sudo pacman -Sy --noconfirm --needed archlinux-keyring
0012 sudo pacman -Su --noconfirm
0013 sudo pacman -S --noconfirm --needed \
0014         mingw-w64-toolchain mingw-w64-cmake mingw-w64-configure mingw-w64-pkg-config \
0015         mingw-w64-ffmpeg mingw-w64-qt5 mingw-w64-kf5 nsis \
0016         mingw-w64-kinit mingw-w64-pango mingw-w64-libvisual \
0017         mingw-w64-aspell mingw-w64-hunspell mingw-w64-icu \
0018         mingw-w64-libidn2 mingw-w64-openal \
0019         kconfig5 kcoreaddons5 breeze-icons icu
0020 sudo pacman -Sdd --noconfirm --needed kauth5 kbookmarks5 kcodecs5 kcompletion5 \
0021         kconfig5 kconfigwidgets5 kcoreaddons5 kglobalaccel5 kitemviews5 kjobwidgets5 \
0022         knotifications5 ktextwidgets5 kwidgetsaddons5 kwindowsystem5 kxmlgui5 \
0023         solid5 sonnet5
0024 
0025 i686-w64-mingw32-cmake -B /home/devel/build \
0026         -DCMAKE_BUILD_TYPE=Release \
0027         -DKDE_INSTALL_LIBDIR=lib \
0028         -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
0029         -DBUILD_TESTING=OFF \
0030         -DKF5_HOST_TOOLING=/usr/lib/cmake \
0031         -DKCONFIGCOMPILER_PATH=/usr/lib/cmake/KF5Config/KF5ConfigCompilerTargets.cmake \
0032         -DTARGETSFILE=/usr/lib/cmake/KF5CoreAddons/KF5CoreAddonsToolingTargets.cmake
0033 cmake --build /home/devel/build -j$(nproc)
0034 DESTDIR="/home/devel/build/nsis" cmake --build /home/devel/build --target nsis