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

Ports: Update and refactor opentyrian

- Add SDL2_net
- Bring CMake file closer to proposed upstream
- Remove opentyrian-data port and merge it into the main port
- Do a release build
- Add correct icon
This commit is contained in:
Fabian Dellwing 2023-07-16 07:46:55 +02:00 committed by Sam Atkins
parent 31e555aaa5
commit f9e62bc947
4 changed files with 135 additions and 108 deletions

View file

@ -1,19 +1,30 @@
#!/usr/bin/env -S bash ../.port_include.sh
port=opentyrian
version=84b820f852f3f6b812b4d00d6b3906adbbf3bbdb
useconfigure=true
files="https://github.com/opentyrian/opentyrian/archive/${version}.tar.gz ${version}.tar.gz 7429cc8e3468e3462b886cb99fe6cc0f5d232c193b68a94dc427493107c30dec"
configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt")
depends=("SDL2" "opentyrian-data")
port='opentyrian'
version='9750f8cfab738d0ea08ccb8d8752b95f5c09df07'
useconfigure='true'
files="https://github.com/opentyrian/opentyrian/archive/${version}.tar.gz ${version}.tar.gz f9cd08210df3990c0bc3ac9241694bd6c58e0ddec4716b6e74a7cc655637e5a0
http://camanis.net/tyrian/tyrian21.zip tyrian21.zip 7790d09a2a3addcd33c66ef063d5900eb81cc9c342f4807eb8356364dd1d9277"
configopts=(
'-DCMAKE_BUILD_TYPE=release'
"-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
)
depends=(
'SDL2'
'SDL2_net'
)
launcher_name=OpenTyrian
launcher_category=Games
launcher_command=/usr/local/bin/tyrian
launcher_name='OpenTyrian'
launcher_category='Games'
launcher_command='/usr/local/bin/opentyrian'
icon_file='linux/icons/tyrian-128.png'
configure() {
run cmake "${configopts[@]}"
run cmake "${configopts[@]}" .
}
install() {
run make install
run_nocd rm -f tyrian21/*.exe
run_nocd mkdir -p "${SERENITY_INSTALL_ROOT}/usr/local/share/games/opentyrian/"
run_nocd cp -a tyrian21/* "${SERENITY_INSTALL_ROOT}/usr/local/share/games/opentyrian/"
}