Package Details: openrct2-git 0.4.4.r18.g1174063c27-1

Git Clone URL: (read-only, click to copy)
Package Base: openrct2-git
Description: Open source re-implementation of Roller Coaster Tycoon 2 (requires full copy of the game)
Upstream URL:
Licenses: GPL3
Conflicts: openrct2
Provides: openrct2
Submitter: grahamedgecombe
Maintainer: rctdude2
Last Packager: rctdude2
Votes: 29
Popularity: 0.145131
First Submitted: 2014-05-27 09:56 (UTC)
Last Updated: 2023-04-01 20:12 (UTC)

Latest Comments

1 2 3 4 5 6 .. 13 Next › Last »

Sir-Photch commented on 2022-08-18 09:14 (UTC)

I can confirm that patching the PKGBUILD with @Thaodan's diff works!

Technetium1 commented on 2022-07-11 04:10 (UTC)

@Thaodan sorry about that, I misread the diff. If using a .so then you could do it like this, but it's preferred to require the package which provides the .so. From the makedepends section of PKGBUILD page on wiki: The packages in the depends array are implicitly required to build the package, they should not be duplicated here., so you still don't need to duplicate them.

Thaodan commented on 2022-07-07 19:00 (UTC)

@Technetium: hm which dependencies did I add to makedepend and depend?

Offtopic: but if using .so symbols rather than package names having the same package in both make- and depends makes sense.

ilikerackmounts commented on 2022-07-05 20:51 (UTC)

Can someone merge Thaodan's changes? It'd be great for tools that automatically ingest AUR to be able to install/update this rather than to have to do it as a one-off.

Technetium1 commented on 2022-07-03 02:48 (UTC)

@Thaodan packages cannot be in both depends and makedepends, it's one or the other:

Thaodan commented on 2022-06-12 21:41 (UTC) (edited on 2022-06-12 21:53 (UTC) by Thaodan)

This is my pkgbuild with all the fixes I just mentioned:

diff --git a/PKGBUILD b/PKGBUILD
index 4ec7047..874ce7b 100644
@@ -1,15 +1,16 @@
 # Maintainer: Graham Edgecombe <>
 pkgdesc='Open source re-implementation of Roller Coaster Tycoon 2 (requires full
          copy of the game)'
 arch=('i686' 'x86_64' 'armv7h' 'aarch64')
-depends=('hicolor-icon-theme' 'sdl2' 'curl' 'nlohmann-json' 'speexdsp'
-         'fontconfig' 'libpng' 'openssl' 'libzip' 'icu' 'duktape' 'benchmark')
-makedepends=('git' 'cmake' 'discord-rpc-api')
+depends=('hicolor-icon-theme' 'sdl2' 'curl' 'speexdsp'
+         'fontconfig' 'libpng' 'openssl' 'libzip' 'icu' 'benchmark'
+         'libogg' 'libvorbis' 'flac' 'discord-rpc')
+makedepends=('git' 'cmake' 'nlohmann-json')
 optdepends=('zenity: System dialog box support (GNOME/GTK)'
             'kdialog: System dialog box support (KDE)'
             'alsa-lib: ALSA audio driver'
@@ -21,24 +22,29 @@ source=("$pkgname"::'git+

 pkgver() {
-  cd "$srcdir/$pkgname"
-  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+  cd "$pkgname"
+  git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'

 build() {
-  cd "$srcdir/$pkgname"
+  # Required options to workaround GCC 12 issues
+  #
+  CXXFLAGS+=" -Wno-error=maybe-uninitialized  -Wno-error=restrict  -Wno-error=null-dereference"

-  mkdir -p build
-  cd build
-    -DCMAKE_INSTALL_LIBDIR=/usr/lib ..
-  make all g2
+  # Needed to be able to build while LTO is enabled
+  #
+  CXXFLAGS+="  -Wno-error=stringop-overflow"
+  cmake -B build -S "$pkgname" \
+        -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+        -DCMAKE_INSTALL_PREFIX='/usr' \
+        -DSTATIC=OFF \
+        -Wno-dev
+  cmake --build build -v

 package() {
-  cd "$srcdir/$pkgname/build"
-  make DESTDIR="$pkgdir" install
+  DESTDIR="$pkgdir" cmake --install build

   rm "$pkgdir/usr/lib/libopenrct2.a"
   rmdir "$pkgdir/usr/lib"

Thaodan commented on 2022-06-12 20:00 (UTC)

Add this to able to compile: export CXXFLAGS+=" -Wno-error=maybe-uninitialized -Wno-error=restrict -Wno-error=null-dereference"


Thaodan commented on 2022-06-12 19:33 (UTC)

Benchmark is only optional dependency. The pkgbuild should be updated against cmake packaging guidelines.