2022-03-19 15:59:12 +00:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
|
|
|
port=powdertoy
|
|
|
|
version=96.2.350
|
|
|
|
useconfigure=true
|
2022-07-09 14:14:03 +00:00
|
|
|
configopts=("-Dbuildtype=release" "build-release" "--cross-file" "${SERENITY_BUILD_DIR}/meson-cross-file.txt")
|
2022-03-19 15:59:12 +00:00
|
|
|
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"
|
|
|
|
workdir="The-Powder-Toy-${version}"
|
|
|
|
launcher_name="The Powder Toy"
|
2022-03-24 19:16:50 +00:00
|
|
|
icon_file="resources/icon.ico"
|
2022-03-19 15:59:12 +00:00
|
|
|
launcher_category="Games"
|
|
|
|
launcher_command="/usr/local/bin/powder"
|
|
|
|
launcher_run_in_terminal=false
|
|
|
|
|
|
|
|
configure() {
|
2022-05-27 16:22:36 +00:00
|
|
|
run meson "${configopts[@]}"
|
2022-03-19 15:59:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2022-05-27 16:22:36 +00:00
|
|
|
run ninja -C build-release
|
2022-03-19 15:59:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
install() {
|
2022-05-27 16:22:36 +00:00
|
|
|
run cp build-release/powder "${SERENITY_INSTALL_ROOT}/usr/local/bin"
|
2022-03-19 15:59:12 +00:00
|
|
|
}
|