New package: OpenRCT2-0.2.4

Closes: #18562 [via git-merge-pr]
This commit is contained in:
Josh Klar 2020-01-26 01:04:26 -08:00 committed by Jürgen Buchmüller
parent e9cdbff5d5
commit c722877ef8
3 changed files with 62 additions and 0 deletions

1
srcpkgs/OpenRCT2-data Symbolic link
View File

@ -0,0 +1 @@
OpenRCT2

View File

@ -0,0 +1,5 @@
You must install a package that provides either the zenity or kdialog binaries:
- zenity
- qarma
- kdialog

56
srcpkgs/OpenRCT2/template Normal file
View File

@ -0,0 +1,56 @@
# Template file for 'OpenRCT2'
# based on https://raw.githubusercontent.com/AluisioASG/void-packages/openrct2/srcpkgs/OpenRCT2/template
# and https://github.com/void-linux/void-packages/issues/1014#issuecomment-417372421
pkgname=OpenRCT2
_objects_version=1.0.12
_titles_version=0.1.2
version=0.2.4
revision=1
build_style=cmake
configure_args="$(vopt_if multiplayer "" "-DDISABLE_HTTP_TWITCH=1 -DDISABLE_NETWORK=1")"
hostmakedepends="pkg-config unzip"
makedepends="SDL2-devel fontconfig-devel freetype-devel libzip-devel
libpng-devel speexdsp-devel jansson-devel icu-devel zlib-devel
$(vopt_if multiplayer libcurl-devel) $(vopt_if multiplayer libressl-devel)"
depends="libGL OpenRCT2-data"
short_desc="Open source re-implementation of RollerCoaster Tycoon 2"
maintainer="klardotsh <josh@klar.sh>"
license="GPL-3.0-or-later"
homepage="https://openrct2.io"
distfiles="https://github.com/OpenRCT2/OpenRCT2/archive/v${version}.tar.gz
https://github.com/OpenRCT2/objects/releases/download/v${_objects_version}/objects.zip
https://github.com/OpenRCT2/title-sequences/releases/download/v${_titles_version}/title-sequence-v${_titles_version}.zip"
checksum="@2fd45177c3946a89bfa254e1722d3a861b35758765fd7e64ec27798553d4f3f2
95b4648712f986e0219d43bb5400357b4bcf9e045b04dba561fc5be3e25e081b
dcb1648739b351e857e2d19fed1626bec561d5e9f4b49201568f42c475ee7e61"
skip_extraction="objects.zip title-sequence-v${_titles_version}.zip"
build_options="multiplayer"
build_options_default="multiplayer"
desc_option_multiplayer="Enable multiplayer support"
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" OpenRCT2"
CXXFLAGS="-DHAVE_IMMINTRIN_H=false -DSDL_DISABLE_IMMINTRIN_H=1"
fi
pre_configure() {
if [ "$CROSS_BUILD" ]; then
sed -i -e 's#COMMAND ./openrct2#COMMAND openrct2#g' CMakeLists.txt
fi
}
post_extract() {
_srcdir="${XBPS_SRCDISTDIR}/${pkgname}-${version}"
mkdir -p data/object data/title
unzip -qd data/object "${_srcdir}/objects.zip"
unzip -qd data/title "${_srcdir}/title-sequence-v${_titles_version}.zip"
}
OpenRCT2-data_package() {
short_desc+=" - data files"
noarch=yes
pkg_install() {
vmove usr/share/openrct2
}
}