Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New package: OpenRCT2-0.2.4
Date: Sun, 26 Jan 2020 10:05:42 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-18562@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 519 bytes --]

There is a new pull request by klardotsh against master on the void-packages repository

https://github.com/klardotsh/void-packages klardotsh-openrct2
https://github.com/void-linux/void-packages/pull/18562

New package: OpenRCT2-0.2.4
Builds upon and resolves #1014

Tested by playing the game on `x86_64-musl`, and tested building for (but not running on - my arm64 machine is currently offline) `aarch64-musl` successfully.

A patch file from https://github.com/void-linux/void-packages/pull/18562.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-klardotsh-openrct2-18562.patch --]
[-- Type: text/x-diff, Size: 2941 bytes --]

From a96843221b461c0bf88e45da1f41e5ed579c631d Mon Sep 17 00:00:00 2001
From: Josh Klar <josh@klar.sh>
Date: Sun, 26 Jan 2020 01:04:26 -0800
Subject: [PATCH] New package: OpenRCT2-0.2.4

---
 srcpkgs/OpenRCT2/INSTALL.msg |  5 ++++
 srcpkgs/OpenRCT2/template    | 47 ++++++++++++++++++++++++++++++++++++
 2 files changed, 52 insertions(+)
 create mode 100644 srcpkgs/OpenRCT2/INSTALL.msg
 create mode 100644 srcpkgs/OpenRCT2/template

diff --git a/srcpkgs/OpenRCT2/INSTALL.msg b/srcpkgs/OpenRCT2/INSTALL.msg
new file mode 100644
index 00000000000..70817138b9d
--- /dev/null
+++ b/srcpkgs/OpenRCT2/INSTALL.msg
@@ -0,0 +1,5 @@
+You must install a package that provides either the zenity or kdialog binaries:
+
+- zenity
+- qarma
+- kdialog
diff --git a/srcpkgs/OpenRCT2/template b/srcpkgs/OpenRCT2/template
new file mode 100644
index 00000000000..f8bf5d65891
--- /dev/null
+++ b/srcpkgs/OpenRCT2/template
@@ -0,0 +1,47 @@
+# 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"
+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"
+}

             reply	other threads:[~2020-01-26  9:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-26  9:05 voidlinux-github [this message]
2020-01-26 20:12 ` [PR PATCH] [Closed]: " voidlinux-github
2020-01-26 20:18 ` voidlinux-github
2020-01-26 20:21 ` voidlinux-github

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-18562@inbox.vuxu.org \
    --to=voidlinux-github@inbox.vuxu.org \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).