serenity/Ports/stpuzzles/package.sh
Gunnar Beutner a4d5745e2f Ports: Remove checksum for the stpuzzles port
The Git repository is hosted on GitHub and is owned by the SerenityOS
GitHub organization which means our root of trust is GitHub anyway
(where did you get _this_ repository from?) So let's remove the
checksum.
2021-06-09 17:39:00 +04:30

21 lines
872 B
Bash
Executable file

#!/usr/bin/env -S bash ../.port_include.sh
port=SimonTathamsPuzzles
useconfigure=true
version=git
workdir=stpuzzles-main
configopts="-DCMAKE_TOOLCHAIN_FILE=$SERENITY_SOURCE_DIR/Toolchain/CMake/CMakeToolchain.txt"
files="https://github.com/SerenityOS/stpuzzles/archive/refs/heads/main.zip stpuzzles.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
}