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

Git Clone URL: https://aur.archlinux.org/openrct2-git.git (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: https://openrct2.io
Licenses: GPL3
Conflicts: openrct2
Provides: openrct2
Submitter: grahamedgecombe
Maintainer: rctdude2
Last Packager: rctdude2
Votes: 30
Popularity: 0.002568
First Submitted: 2014-05-27 09:56 (UTC)
Last Updated: 2023-04-01 20:12 (UTC)

Dependencies (22)

Required by (1)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 .. 14 Next › Last »

shtrophic commented on 2023-12-18 09:05 (UTC)

@jhm you could try rebuilding the package or creating a symlink to /usr/lib/libicuuc.so.47.

jhm commented on 2023-12-18 09:01 (UTC)

I have an error on launch: error while loading shared libraries: libicuuc.so.73.

icu was updated today and I suspect a package dependency may need to be changed.

Please let me know if my comment is misguided. I would like to thank the maintainers and developers on this project—I've been having fun!

shtrophic 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: https://wiki.archlinux.org/title/PKGBUILD

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
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,15 +1,16 @@
 # Maintainer: Graham Edgecombe <graham@grahamedgecombe.com>
 pkgname=openrct2-git
-pkgver=r21143.594b08c91
+pkgver=0.4.0.r236.gb0ffa9d28e
 pkgrel=1
 pkgdesc='Open source re-implementation of Roller Coaster Tycoon 2 (requires full
          copy of the game)'
 arch=('i686' 'x86_64' 'armv7h' 'aarch64')
 url='https://openrct2.io'
 license=('GPL3')
-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+https://github.com/OpenRCT2/OpenRCT2.git#branch=develop
 sha256sums=('SKIP')

 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
+  # https://github.com/OpenRCT2/OpenRCT2/issues/17371
+  CXXFLAGS+=" -Wno-error=maybe-uninitialized  -Wno-error=restrict  -Wno-error=null-dereference"

-  mkdir -p build
-  cd build
-  cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/usr \
-    -DCMAKE_INSTALL_LIBDIR=/usr/lib ..
-  make all g2
+  # Needed to be able to build while LTO is enabled
+  # https://github.com/OpenRCT2/OpenRCT2/issues/6200
+  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"