mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
d53c602e11
We currently have no valid use case for having a `port` property different from the directory name the port's residing in. We do have issues when this is the case when referencing dependencies, so let's make sure all ports have a sensible `port` property to begin with.
20 lines
857 B
Bash
Executable file
20 lines
857 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 ${port}.zip"
|
|
|
|
configure() {
|
|
run cmake "${configopts[@]}" -DCMAKE_CXX_FLAGS="-std=c++2a -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
|
|
}
|