2021-05-31 19:36:16 +03:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
2022-04-03 14:28:15 +03:00
|
|
|
port=stpuzzles
|
2021-05-31 19:36:16 +03:00
|
|
|
useconfigure=true
|
|
|
|
version=git
|
2022-04-03 14:28:15 +03:00
|
|
|
workdir="${port}-main"
|
2021-09-27 01:16:18 +03:00
|
|
|
configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt")
|
2023-07-10 14:10:29 +03:00
|
|
|
files=(
|
2023-12-27 19:22:14 +03:00
|
|
|
"https://github.com/SerenityPorts/stpuzzles/archive/refs/heads/main.zip#dea475333e3826ab1ab63524b15466fd0800c8652297590d0260e09e84b9b225"
|
2023-07-10 14:10:29 +03:00
|
|
|
)
|
2021-05-31 19:36:16 +03:00
|
|
|
|
|
|
|
configure() {
|
2021-09-27 01:16:18 +03:00
|
|
|
run cmake "${configopts[@]}" -DCMAKE_CXX_FLAGS="-std=c++2a -O2"
|
2021-05-31 19:36:16 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
install() {
|
|
|
|
run make install
|
2021-06-04 00:39:01 +03:00
|
|
|
|
|
|
|
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
|
2024-01-03 22:34:07 +03:00
|
|
|
install_launcher "$puzzle" "&Games/Puzzles" "/usr/local/bin/$puzzle" ""
|
2021-06-06 20:22:39 +03:00
|
|
|
install_icon "static-icons/${puzzle}.ico" "/usr/local/bin/$puzzle"
|
2021-06-04 00:39:01 +03:00
|
|
|
done
|
2021-05-31 19:36:16 +03:00
|
|
|
}
|