mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2026-07-17 16:36:49 +00:00
27 lines
587 B
Bash
Executable file
27 lines
587 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
build_and_install() {
|
|
cmake -S . -B build -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
|
-DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=$HOME/.local -GNinja
|
|
ninja -C build install
|
|
}
|
|
|
|
prepare_source() {
|
|
DIR=fmt
|
|
cd /tmp
|
|
[ -d ./${DIR} ] && rm -rf ./${DIR}
|
|
mkdir ${DIR}
|
|
|
|
FMT_RELEASE="${FMT_RELEASE:-12.2.0}"
|
|
|
|
curl -Ls "https://github.com/fmtlib/fmt/archive/${FMT_RELEASE}.tar.gz" | \
|
|
|
|
tar xzvf - -C ${DIR}/ --strip-components=1
|
|
cd ${DIR}
|
|
}
|
|
|
|
prepare_source
|
|
build_and_install
|