build.sh 1.23 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
	kconfig kcoreaddons breeze-icons icu \
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
	mingw-w64-mpv \
	mingw-w64-gst-libav mingw-w64-gst-plugins-good
sudo pacman -Sdd --noconfirm --needed kauth kbookmarks kcodecs kcompletion \
	kconfig kconfigwidgets kcoreaddons kglobalaccel kitemviews kjobwidgets \
	knotifications kross ktextwidgets kwidgetsaddons kwindowsystem kxmlgui \
	solid sonnet
cd build
i686-w64-mingw32-cmake \
	-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 \
	-DTARGETSFILE=/usr/lib/cmake/KF5CoreAddons/KF5CoreAddonsToolingTargets.cmake \
	..
make -j$(nproc)
make DESTDIR="$PWD/nsis" nsis