File: build.sh

package info (click to toggle)
subtitlecomposer 0.8.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,972 kB
  • sloc: cpp: 36,722; sh: 1,366; javascript: 1,029; xml: 937; ansic: 10; makefile: 6
file content (34 lines) | stat: -rwxr-xr-x 1,327 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash

set -e

project_root="$(readlink -f "$(dirname "$0")/../..")"
cd "$project_root"

rm -rf /home/devel/build
mkdir -p /home/devel/build/nsis

sudo pacman -Sy --noconfirm --needed archlinux-keyring
sudo pacman -Su --noconfirm
sudo pacman -S --noconfirm --needed \
	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 \
	mingw-w64-libidn2 mingw-w64-openal \
	kconfig5 kcoreaddons5 breeze-icons icu
sudo pacman -Sdd --noconfirm --needed kauth5 kbookmarks5 kcodecs5 kcompletion5 \
	kconfig5 kconfigwidgets5 kcoreaddons5 kglobalaccel5 kitemviews5 kjobwidgets5 \
	knotifications5 ktextwidgets5 kwidgetsaddons5 kwindowsystem5 kxmlgui5 \
	solid5 sonnet5

i686-w64-mingw32-cmake -B /home/devel/build \
	-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
cmake --build /home/devel/build -j$(nproc)
DESTDIR="/home/devel/build/nsis" cmake --build /home/devel/build --target nsis