ports: Add butterscotch port

This commit is contained in:
2026-06-22 21:25:04 +03:00
parent e19414a64e
commit aa1b1e1af9
3 changed files with 92 additions and 0 deletions

26
ports/butterscotch/build.sh Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/bash ../install.sh
NAME='butterscotch'
VERSION='git'
DOWNLOAD_URL="https://github.com/ButterscotchRunner/Butterscotch.git#b95f61c1aa84d9dd4a7b589b2a3331ab28dfa2ea"
DEPENDENCIES=('SDL2' 'openal-soft')
configure() {
cmake --fresh -B build -S . -G Ninja \
--toolchain="$BANAN_TOOLCHAIN_DIR/Toolchain.txt" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DPLATFORM='desktop' \
-DAUDIO_BACKEND='openal' \
-DDESKTOP_BACKEND='sdl2' \
. || exit 1
}
build() {
cmake --build build || exit 1
}
install() {
mkdir -p "$DESTDIR/usr/bin" || exit 1
cp -vf build/butterscotch "$DESTDIR/usr/bin/" || exit 1
}