1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-29 12:17:36 +00:00

Ports: Add The Powder Toy port

This commit is contained in:
circl 2022-03-19 16:59:12 +01:00 committed by Linus Groh
parent adcd39d928
commit 0865a06ef5
5 changed files with 89 additions and 0 deletions

25
Ports/powdertoy/package.sh Executable file
View file

@ -0,0 +1,25 @@
#!/usr/bin/env -S bash ../.port_include.sh
port=powdertoy
version=96.2.350
useconfigure=true
configopts=("--cross-file" "../cross_file-$SERENITY_ARCH.txt")
depends=("luajit" "curl" "libfftw3f" "zlib" "SDL2")
files="https://github.com/The-Powder-Toy/The-Powder-Toy/archive/refs/tags/v${version}.tar.gz The-Powder-Toy-${version}.tar.gz d95cbadee22632687661e8fc488bd64405d81c0dca737e16420f26e93ea5bf58"
auth_type=sha256
workdir="The-Powder-Toy-${version}"
launcher_name="The Powder Toy"
launcher_category="Games"
launcher_command="/usr/local/bin/powder"
launcher_run_in_terminal=false
configure() {
run meson build-debug "${configopts[@]}"
}
build() {
run ninja -C build-debug
}
install() {
run cp build-debug/powder "${SERENITY_INSTALL_ROOT}/usr/local/bin"
}