mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-13 11:42:38 +03:00
56 lines
1.5 KiB
Bash
Executable File
56 lines
1.5 KiB
Bash
Executable File
#!/usr/bin/env -S bash ../.port_include.sh
|
|
port='openrct2'
|
|
version='0.4.8'
|
|
depends=(
|
|
'curl'
|
|
'flac'
|
|
'fontconfig'
|
|
'freetype'
|
|
'libicu'
|
|
'libogg'
|
|
'libpng'
|
|
'libvorbis'
|
|
'libzip'
|
|
'nlohmann-json'
|
|
'openssl'
|
|
'SDL2'
|
|
'speexdsp'
|
|
'zlib'
|
|
)
|
|
files=(
|
|
"https://github.com/OpenRCT2/OpenRCT2/archive/refs/tags/v${version}.tar.gz#b79bdfd91e2676b0238a94ef3a53bf13a6b6ba417a8d77056a8ea2a903967fd1"
|
|
"https://github.com/OpenRCT2/OpenRCT2/releases/download/v${version}/OpenRCT2-${version}-linux-jammy-x86_64.tar.gz#a9152601612e2c5249324bce849c5fbdbfe40886128cf3848aae4b62b0c51936"
|
|
)
|
|
useconfigure='true'
|
|
workdir="OpenRCT2-${version}"
|
|
icon_file='resources/logo/icon.ico'
|
|
launcher_name='OpenRCT2'
|
|
launcher_category='&Games'
|
|
launcher_command='/usr/local/bin/openrct2'
|
|
|
|
configure() {
|
|
mkdir -p "${PORT_BUILD_DIR}/OpenRCT2-${version}-build"
|
|
cd "${PORT_BUILD_DIR}/OpenRCT2-${version}-build"
|
|
cmake \
|
|
-G Ninja \
|
|
-DCMAKE_TOOLCHAIN_FILE="${SERENITY_BUILD_DIR}/CMakeToolchain.txt" \
|
|
-DCMAKE_INSTALL_PREFIX="${DESTDIR}/usr/local/" \
|
|
-DCMAKE_BUILD_TYPE='Release' \
|
|
-DDISABLE_DISCORD_RPC='ON' \
|
|
-DDISABLE_GOOGLE_BENCHMARK='ON' \
|
|
-DWITH_TESTS='OFF' \
|
|
-DDISABLE_OPENGL='ON' \
|
|
"${PORT_BUILD_DIR}/OpenRCT2-${version}"
|
|
}
|
|
|
|
build() {
|
|
cd "${PORT_BUILD_DIR}/OpenRCT2-${version}-build"
|
|
[ -f 'g2.dat' ] || mv "${PORT_BUILD_DIR}/OpenRCT2/data/g2.dat" '.'
|
|
ninja
|
|
}
|
|
|
|
install() {
|
|
cd "${PORT_BUILD_DIR}/OpenRCT2-${version}-build"
|
|
ninja install
|
|
}
|