Package Details: re3-git r3167.3233ffe1-1

Git Clone URL: (read-only, click to copy)
Package Base: re3-git
Description: An open-source project reverse-engineering Grand Theft Auto III
Upstream URL:
Licenses: unknown
Conflicts: re3
Provides: re3
Submitter: hazelnot
Maintainer: eugene
Last Packager: eugene
Votes: 8
Popularity: 0.67
First Submitted: 2020-10-16 15:27 (UTC)
Last Updated: 2021-10-08 00:20 (UTC)

Pinned Comments

Latest Comments

kellerman commented on 2021-12-04 18:55 (UTC)

yes, all works after changing the repo

feral_hedgehog commented on 2021-09-05 22:05 (UTC)

Hello! I've just built the package using glfw-wayland and the game is running without issues so far (on SwayWM). Could you change the dependency to glfw instead of glfw-x11?
Thank you for this package!

katt commented on 2021-08-17 10:49 (UTC)

Fails to package with:

==> Starting package()...
install: cannot stat 'logo.png': No such file or directory
==> ERROR: A failure occurred in package().

hotorcelexo commented on 2021-07-01 10:09 (UTC)

hello, i have problem with compiling

:: Загрузка последних исходников для пакета re3-git...                                                                                                                                                                            

:: Начало сборки:                                                                                                                                                                                                                 
==> Сборка пакета re3-git r2981.a3964dfd-1 (Чт 01 июл 2021 13:05:43)                                                                                                                                  
==> Проверка зависимостей для запуска...                                                                                                                                                              
==> Проверка зависимостей для сборки...                                                                                                                                                               
==> Получение исходных файлов...                                                                                                                                                                      
  -> Обновление репозитория 're3' (git)...                                                                                                                                                            
Извлечение из origin                                                                                                                                                                                  
  -> Обновление репозитория 'librw' (git)...                                                                                                                                                          
Извлечение из origin                                                                                                                                                                                  
  -> Обновление репозитория 'ogg' (git)...                                                                                                                                                            
Извлечение из origin                                                                                                                                                                                  
  -> Обновление репозитория 'opus' (git)...                                                                                                                                                           
Извлечение из origin                                                                                                                                                                                  
  -> Обновление репозитория 'opusfile' (git)...                                                                                                                                                       
Извлечение из origin                                                                                                                                                                                  
  -> Найден crossplatform_fix.patch                                                                                                                                                                   
  -> Найден no_link_with_unnecessary_sndfile.patch                                                               
  -> Найден re3-launcher
  -> Найден re3.desktop                        
==> Проверка файлов source с использованием sha256sums...                                                        
    re3 ... Пропущено              
    librw ... Пропущено                                                                            
    ogg ... Пропущено   
    opus ... Пропущено 
    opusfile ... Пропущено                                                                         
    crossplatform_fix.patch ... Готово
    no_link_with_unnecessary_sndfile.patch ... Готово                                                            
    re3-launcher ... Готово
    re3.desktop ... Готово
==> Распаковка исходных файлов...
  -> Создание рабочей копии репозитория 're3' (git)...                                                           
Сброс ветки «makepkg»                                                                              
  -> Создание рабочей копии репозитория 'librw' (git)...                                                         
Сброс ветки «makepkg»     
  -> Создание рабочей копии репозитория 'ogg' (git)...                                                           
Сброс ветки «makepkg»                                                                              
  -> Создание рабочей копии репозитория 'opus' (git)...                                                          
Сброс ветки «makepkg»                                                                              
  -> Создание рабочей копии репозитория 'opusfile' (git)...                                                      
Сброс ветки «makepkg»                                                                              
==> Запускается prepare()...
patching file src/skel/crossplatform.h                                                             
Hunk #1 FAILED at 138.
1 out of 1 hunk FAILED -- saving rejects to file src/skel/crossplatform.h.rej
==> ОШИБКА: Произошел сбой в prepare().

maybe additional deps will be need?

mokman commented on 2021-06-20 07:44 (UTC)

@eugene: thanks a lot for your fix, could you take a look at revc-git as well? much appreciated!

eugene commented on 2021-06-11 16:10 (UTC) (edited on 2021-06-11 16:38 (UTC) by eugene)

@Redi For -miami branch there is separate package revc-git. -lcs branch is not really useful as vital functionality is not implemented and resources package is not available (I don't have any public link for it).

Redi commented on 2021-06-11 15:30 (UTC)

Works like a charm. Would it be possible to get the -miami and -lcs branches too?

eugene commented on 2021-06-05 11:25 (UTC) (edited on 2021-06-05 11:26 (UTC) by eugene)

fixed the package by re-enabling no_link_with_unnecessary_sndfile.patch. I don't know why it was commented out previously. Tested in clean chroot.

mokman commented on 2021-06-05 06:41 (UTC) (edited on 2021-06-05 10:55 (UTC) by mokman)

i am unable to build, is there anything i am missing? i tried also in a clean environment:

Linking re3
/usr/bin/ld: cannot find -lsndfile
clang-11: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: [re3.make:639: ./bin/linux-amd64-librw_gl3_glfw-oal/Release/re3] Error 1
[Makefile:78: re3] Error 2
make: Leaving directory '/home/mok/.cache/paru/clone/re3-git/src/re3/build'
==> ERROR: A failure occured in build().
error: failed to build 're3-git-r2913.9a7fa478-1':
:: Packages failed to build: re3-git-r2913.9a7fa478-1

kuba8588 commented on 2021-05-12 13:44 (UTC)

Back on github.

gmy commented on 2021-02-26 20:38 (UTC) (edited on 2021-02-26 20:58 (UTC) by gmy)

@gouster4, please, try again. I suppose you had glfw-wayland installed. Builds fine for me with glfw-x11, so I added that as dependency.

gouster4 commented on 2021-02-26 19:56 (UTC)

Linking re3 /usr/bin/ld: obj/linux-amd64-librw_gl3_glfw-oal/Release/re3/glfw.o: in function checkKeyPresses()': /var/tmp/pamac-build-pavel/re3-git/src/re3/build/../src/skel/glfw/glfw.cpp:1687: undefined reference toglfwGetX11Display' /usr/bin/ld: obj/linux-amd64-librw_gl3_glfw-oal/Release/re3/glfw.o: in function main': /var/tmp/pamac-build-pavel/re3-git/src/re3/build/../src/skel/glfw/glfw.cpp:1473: undefined reference toglfwGetX11Display' collect2: error: ld returned 1 exit status make[1]: [re3.make:639: ../bin/linux-amd64-librw_gl3_glfw-oal/Release/re3] Error 1 make: [Makefile:78: re3] Error 2 make: Leaving directory '/var/tmp/pamac-build-pavel/re3-git/src/re3/build'

kilimor commented on 2021-02-22 11:12 (UTC)

jose1711 commented on 2021-02-21 21:53 (UTC)

For anyone wondering this is what I had to done in order to get compiled:

--- PKGBUILD.orig   2021-02-21 22:52:12.712231463 +0100
+++ PKGBUILD    2021-02-21 22:38:58.233500881 +0100
@@ -1,7 +1,7 @@
 # Maintainer: hazelnot <>
 pkgdesc="An open-source project reverse-engineering Grand Theft Auto III"
@@ -12,7 +12,7 @@
-    "git+"
+    "git+"
@@ -44,7 +44,7 @@
   git submodule update
   patch -uNp1 -i ../crossplatform_fix.patch
-  patch -uNp1 -i ../no_link_with_unnecessary_sndfile.patch
+  # patch -uNp1 -i ../no_link_with_unnecessary_sndfile.patch

 build() {

bpierre commented on 2021-02-20 16:27 (UTC)

I've disowned the package, whoever want to play whack-a-mole with the DMCA take-downs, feel free to take over.

oscareczek commented on 2021-02-20 16:08 (UTC)

@Tom_B re3 support will be likely removed from Luxtorpeda soon, since I don't believe the project will resurface and keeping it in their list of engines can take them down as well.

Tom_B commented on 2021-02-20 15:37 (UTC)

It's now compiling and running fine, thanks everyone.

Not that I am trying to diminish the hard work done by the package authors here but this may not be the best way to run re3.

I have since discovered this which is simpler if you're using the Steam version: it plugs straight into Steam, doesn't need to compile re3. You press "play" in steam and it runs GTA3/VC directly through re3/reVC.

oscareczek commented on 2021-02-20 15:31 (UTC) (edited on 2021-02-20 15:33 (UTC) by oscareczek)

Currently you can get it to work by

--- PKGBUILD    2021-02-20 16:28:32.826739426 +0100
+++ PKGBUILD_new    2021-02-20 16:28:12.696738401 +0100
@@ -12,7 +12,7 @@
-    "git+"
+    "git+"

fenuks commented on 2021-02-18 12:18 (UTC)

Could this package also contain Vice City engine that lives in miami branch?

bpierre commented on 2021-02-16 21:06 (UTC)

@PedroHLC: thanks, fixed; the dependency is not needed (-lsndfile was unnecessarily being used at link time).

PedroHLC commented on 2021-02-16 20:27 (UTC)

Needs libsndfile in depends:

Linking re3
/usr/sbin/ld: cannot find -lsndfile
collect2: error: ld returned 1 exit status

bpierre commented on 2021-02-16 18:05 (UTC)

@loathingkernel: thanks, updated.

loathingkernel commented on 2021-02-16 17:41 (UTC)

This is how you should handle submodules

bpierre commented on 2021-02-15 18:43 (UTC) (edited on 2021-02-15 20:50 (UTC) by bpierre)

OK, I've taken temporary ownership of the package and pushed some fixes, including a basic launcher: re3-launcher will look in ~/.re3/Grand Theft Auto 3, ~/.local/share/Steam/steamapps/common/Grand Theft Auto 3, and the current directory in that order and run re3 from the first one found.

The re3 package also contains some updated game data (patched menu strings, dedicated configuration for proper controller support, ...), and re3-launcher will detect if those are missing and ask before updating the necessary files. (Can be forced with --patch.)

I'll wait for a few days, to fix any obvious issues before disowning, or if you want to take ownership, tell me and I'll disown immediately.

hazelnot commented on 2021-02-15 16:06 (UTC) (edited on 2021-02-15 16:07 (UTC) by hazelnot)

I have no idea how to fix this, I'll disown it and someone who actually knows how to make AUR packages can take over.

Sorry :(

PedroHLC commented on 2021-02-15 16:05 (UTC)

@hazelnot, please adopt a packaging function like where we have a launch script that cd into a user-directory and execute a system-wide process from there

bpierre commented on 2021-02-15 01:38 (UTC)

The compilation should be done in the build phase, not the package one. It should be done with -j1 to prevent issues (I think that's what you're seeing @Tom_b, I got the same error with my default flags using -j5). Why is the PKGBUILD writing to the home directory?! Additionally, I'm not sure there's a good reason for using the embedded premake5Linux binary (instead of the one provided by the premake package available in community), and cmake is not needed.

 PKGBUILD | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git c/PKGBUILD w/PKGBUILD
index 2c98f9b..707503d 100644
@@ -7,7 +7,7 @@ arch=('x86_64')
 depends=('openal' 'glew' 'glfw' 'libsndfile' 'mpg123')
-makedepends=('git' 'cmake')
+makedepends=('git' 'premake')
@@ -19,15 +19,13 @@ pkgver() {

 build() {
-   export GTA_III_RE_DIR="~/.re3"
-   mkdir "$HOME/.re3"
    cd "$srcdir/${pkgname%-git}"
    git submodule update --init --recursive
-   ./premake5Linux --with-librw gmake2
+   premake5 --with-librw gmake2
+   cd "$srcdir/${pkgname%-git}/build"
+   make config=release_linux-amd64-librw_gl3_glfw-oal -j1

 package() {
-   cd "$srcdir/${pkgname%-git}/build"
-   make config=release_linux-amd64-librw_gl3_glfw-oal
-   cp  "$srcdir/${pkgname%-git}/bin/linux-amd64-librw_gl3_glfw-oal/Release/re3" "$HOME/.re3"
+   install -D -m755 "$srcdir/${pkgname%-git}/bin/linux-amd64-librw_gl3_glfw-oal/Release/re3" "$pkgdir/usr/bin/re3"

Tom_B commented on 2021-02-13 20:06 (UTC)

I'm getting the following issue compiling this:

Linking librw
==== Building re3 (release_linux-amd64-librw_gl3_glfw-oal) ====
Creating obj/linux-amd64-librw_gl3_glfw-oal/Release/re3
make[1]: *** No rule to make target '../src/extras/GitSHA1.cpp', needed by 'obj/linux-amd64-librw_gl3_glfw-oal/Release/re3/GitSHA1.o'.  Stop.
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:78: re3] Error 2
==> ERROR: A failure occurred in package().
Error making: re3-git

Am I missing something? I installed glfw-x11 as prompted (as I'm on xorg).

parkerlreed commented on 2020-10-28 19:44 (UTC)

re3 binary to /usr/share/games/re3/re3

Tell users to copy gamedata to /usr/share/games/re3 (Most source ports of games support this location)

Script at /usr/bin/re3 that cd's to that folder and runs ./re3

Seems like that would be a good workaround.

hazelnot commented on 2020-10-28 15:19 (UTC)

Oh damn haha thanks a lot!

thaewrapt commented on 2020-10-28 15:18 (UTC)

No worries, I will try to come up with an updated PKGBUILD. In the meantime, I encourage you to check both package guidelines and the link I already mentioned on Arch Wiki.

hazelnot commented on 2020-10-28 15:09 (UTC) (edited on 2020-10-28 15:10 (UTC) by hazelnot)

Unfortunately this is my first AUR package and I don't really know how to fix it :(

It doesn't even install on my PC when using a helper despite it working locally. The developers are working on actual XDG integration but I can't really help since I'm just a designer, not a programmer.

If anyone can actually get this working properly I'm more than willing to relinquish maintainership (is that even a real word?) of this package.

thaewrapt commented on 2020-10-28 15:06 (UTC)

Actually, it's a bad practice to have it copying into homedir in package(), not to mention if would fail if trying to build in chroot (which I have just encountered).

More probably we need a script to do all the necessary steps after the actual installation (i.e., not in PKGBUILD) and a post-install warning for user to run it once.