build.sh 1.32 KB
Newer Older
1
2
3
4
5
6
7
8
#!/bin/bash

set -e

appver="$(git describe --always --abbrev=8 | sed 's/-g/./;s/-/./;s/^v//g')"
rm -rf build &>/dev/null || true
mkdir -p build/nsis

9
10
sudo pacman -Sy --noconfirm --needed archlinux-keyring
sudo pacman -Su --noconfirm
Mladen Milinkovic's avatar
Mladen Milinkovic committed
11
sudo pacman -S --noconfirm --needed \
12
13
14
15
	mingw-w64-toolchain mingw-w64-cmake mingw-w64-configure mingw-w64-pkg-config \
	mingw-w64-ffmpeg mingw-w64-qt5 mingw-w64-kf5 nsis \
	mingw-w64-kinit mingw-w64-pango mingw-w64-libvisual \
	mingw-w64-aspell mingw-w64-hunspell mingw-w64-icu \
Mladen Milinkovic's avatar
Mladen Milinkovic committed
16
17
	mingw-w64-libidn2 mingw-w64-openal \
	kconfig kcoreaddons breeze-icons icu
18
19
20
21
sudo pacman -Sdd --noconfirm --needed kauth kbookmarks kcodecs kcompletion \
	kconfig kconfigwidgets kcoreaddons kglobalaccel kitemviews kjobwidgets \
	knotifications kross ktextwidgets kwidgetsaddons kwindowsystem kxmlgui \
	solid sonnet
Mladen Milinkovic's avatar
Mladen Milinkovic committed
22

23
24
25
# package icons into .qrc
pkg/mingw/icons-find.sh > src/subtitlecomposer.qrc

Mladen Milinkovic's avatar
Mladen Milinkovic committed
26
i686-w64-mingw32-cmake -B build \
27
28
29
30
31
32
	-DCMAKE_BUILD_TYPE=Release \
	-DKDE_INSTALL_LIBDIR=lib \
	-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
	-DBUILD_TESTING=OFF \
	-DKF5_HOST_TOOLING=/usr/lib/cmake \
	-DKCONFIGCOMPILER_PATH=/usr/lib/cmake/KF5Config/KF5ConfigCompilerTargets.cmake \
Mladen Milinkovic's avatar
Mladen Milinkovic committed
33
34
	-DTARGETSFILE=/usr/lib/cmake/KF5CoreAddons/KF5CoreAddonsToolingTargets.cmake
cmake --build build -j$(nproc)
35
DESTDIR="$PWD/build/nsis" cmake --build build --target nsis