mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-22 09:21:57 -05:00
77e890b15e
Now that oss-fuzz is on a clang commit > the 17.x release candidates, we can start looking at some shiny new features to enable.
22 lines
922 B
Bash
Executable file
22 lines
922 B
Bash
Executable file
#!/usr/bin/env -S bash ../.port_include.sh
|
|
port=stpuzzles
|
|
useconfigure=true
|
|
version=git
|
|
workdir="${port}-main"
|
|
configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt")
|
|
files=(
|
|
"https://github.com/SerenityPorts/stpuzzles/archive/refs/heads/main.zip#dea475333e3826ab1ab63524b15466fd0800c8652297590d0260e09e84b9b225"
|
|
)
|
|
|
|
configure() {
|
|
run cmake "${configopts[@]}" -DCMAKE_CXX_FLAGS="-std=c++23 -O2"
|
|
}
|
|
|
|
install() {
|
|
run make install
|
|
|
|
for puzzle in bridges cube dominosa fifteen filling flip flood galaxies guess inertia keen lightup loopy magnets map mines mosaic net netslide palisade pattern pearl pegs range rect samegame signpost singles sixteen slant solo tents towers tracks twiddle undead unequal unruly untangle; do
|
|
install_launcher "$puzzle" "&Games/Puzzles" "/usr/local/bin/$puzzle" ""
|
|
install_icon "static-icons/${puzzle}.ico" "/usr/local/bin/$puzzle"
|
|
done
|
|
}
|