2021-04-03 15:53:44 +00:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
|
|
|
port=PrinceOfPersia
|
|
|
|
useconfigure=true
|
|
|
|
version=git
|
2021-09-26 22:16:18 +00:00
|
|
|
depends=("SDL2" "SDL2_image")
|
2021-04-19 14:17:10 +00:00
|
|
|
workdir=SDLPoP-86988c668eeaa10f218e1d4938fc5b4e42314d68
|
2021-09-26 22:16:18 +00:00
|
|
|
configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt")
|
2021-04-19 14:17:10 +00:00
|
|
|
files="https://github.com/NagyD/SDLPoP/archive/86988c668eeaa10f218e1d4938fc5b4e42314d68.zip PoP.zip d18cae8541fb8cbcc374fd998316993d561429a83f92061bc0754337ada774c5"
|
|
|
|
auth_type=sha256
|
2021-04-20 16:36:03 +00:00
|
|
|
launcher_name="Prince of Persia"
|
|
|
|
launcher_category=Games
|
|
|
|
launcher_command=/opt/PrinceOfPersia/prince
|
2021-04-03 15:53:44 +00:00
|
|
|
|
|
|
|
configure() {
|
2021-09-26 22:16:18 +00:00
|
|
|
run cmake "${configopts[@]}" ./src
|
2021-04-03 15:53:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
install() {
|
2021-04-20 15:42:04 +00:00
|
|
|
mkdir -p "${SERENITY_INSTALL_ROOT}/opt/PrinceOfPersia"
|
|
|
|
run cp -r prince data SDLPoP.ini "${SERENITY_INSTALL_ROOT}/opt/PrinceOfPersia"
|
2021-04-03 15:53:44 +00:00
|
|
|
}
|