This commit is contained in:
pika 2025-05-19 10:45:12 +02:00
parent c37cdde63f
commit 31b999ac2b

View file

@ -5,6 +5,8 @@ command_exists() {
command -v "$@" >/dev/null 2>&1
}
cores="$(nproc 2>/dev/null || getconf NPROCESSORS_CONF)"
# ─< package variable >───────────────────────────────────────────────────────────────────
unset PACKAGE
@ -97,7 +99,7 @@ getDependencies() {
build() {
echo_pkg build
run cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
run cmake --build ./build --config Release --target all -j$(nproc 2>/dev/null || getconf NPROCESSORS_CONF)
run cmake --build ./build --config Release --target all -j"${cores}"
}
cloneAndInstall() {