Package Details: godot3-bin 3.5.3-4

Git Clone URL: https://aur.archlinux.org/godot3-bin.git (read-only, click to copy)
Package Base: godot3-bin
Description: Advanced cross-platform 2D and 3D game engine (3.X Branch)
Upstream URL: https://godotengine.org
Licenses: MIT
Submitter: HurricanePootis
Maintainer: HurricanePootis
Last Packager: HurricanePootis
Votes: 4
Popularity: 0.39
First Submitted: 2023-03-10 20:12 (UTC)
Last Updated: 2024-05-13 13:49 (UTC)

Latest Comments

Felixoid commented on 2024-02-29 18:33 (UTC)

Hi. I think you misinterpreted <<-EOF from bash. It does not remove the last EOL from the heredoc, but If the redirection operator is <<-, then all leading tab characters are stripped from input lines

diff --git a/PKGBUILD b/PKGBUILD
index 3a9d0f3..04e710e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -44,8 +44,7 @@ package() {

        cat >> "${pkgdir}/usr/bin/godot3-bin" <<-EOF
 #!/bin/sh
-/opt/godot3-bin/Godot_v${pkgver}-stable_x11.64
+/opt/godot3-bin/Godot_v${pkgver}-stable_x11.64 "\$@"
 EOF
-       echo '"$@"' >> "${pkgdir}/usr/bin/godot3-bin"
        chmod +x "${pkgdir}/usr/bin/godot3-bin"
 }

Here are the changes to fix the script

Ev1lbl0w commented on 2023-12-28 14:06 (UTC)

The launch script doesn't allow the usage of any arguments, since the $@ is appended to a new line. Please fix this by adding it to the same line:

#!/bin/sh
/opt/godot3-bin/Godot_v3.5.3-stable_x11.64 "$@"

HurricanePootis commented on 2023-09-07 03:05 (UTC)

@Felixoid, please do not use out-of-date to notify me about "changes to improve this package's relations with godot3".

Also, godot3-bin is packaged in a way so that it can be installed alongside godot3 at the same time. There is no reason to make it not that way. Also, godot3 has a patch to make its config folder ~/.config/godot3, while godot3-bin has its config folder at ~/.config/godot. Therefore, godot3-bin does not truly provide the same package as godot3. As as note, godot3 was made that way so it can be installed alongside godot, and as a side-effect, godot3 can also be installed alongside godot3-bin.

Therefore, this package is fine as it is.

Felixoid commented on 2023-09-05 14:17 (UTC)

Hello. Here the diff for the changes to improve this package's relations with godot3

> git diff
diff --git a/.SRCINFO b/.SRCINFO
index 9e61af8..1fba884 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
 pkgbase = godot3-bin
        pkgdesc = Advanced cross-platform 2D and 3D game engine (3.X Branch)
        pkgver = 3.5.2
-       pkgrel = 2
+       pkgrel = 3
        url = https://godotengine.org
        arch = x86_64
        license = MIT
@@ -12,6 +12,8 @@ pkgbase = godot3-bin
        depends = libxrandr
        optdepends = pipewire-alsa
        optdepends = pipewire-pulse
+       provides = godot3
+       conflicts = godot3
        source = https://github.com/godotengine/godot/releases/download/3.5.2-stable/Godot_v3.5.2-stable_x11.64.zip
        source = desktop.tar.xz
        sha256sums = fe2548c59e112a7495bf6a8b42b44ec19c80ea59d60208c185574bed17768044
diff --git a/PKGBUILD b/PKGBUILD
index 852a163..e8e0d99 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,13 +2,15 @@
 _pkgname=godot
 pkgname=godot3-bin
 pkgver=3.5.2
-pkgrel=2
+pkgrel=3
 pkgdesc="Advanced cross-platform 2D and 3D game engine (3.X Branch)"
 arch=("x86_64")
 url='https://godotengine.org'
 license=('MIT')
 depends=(libglvnd libxcursor libxi libxinerama libxrandr) # Depends() is small due to godot binary static linking libraries
 optdepends=(pipewire-alsa pipewire-pulse)
+provides=(godot3)
+conflicts=(godot3)
 source=("https://github.com/godotengine/godot/releases/download/${pkgver}-stable/Godot_v${pkgver}-stable_x11.64.zip"
        "desktop.tar.xz") #desktop.tar.xz is taken from godot3, since the godot binary doesn't come with any files for desktop integration, nor the man pages
 sha256sums=('fe2548c59e112a7495bf6a8b42b44ec19c80ea59d60208c185574bed17768044'
@@ -23,5 +25,5 @@ package() {
                cp -r "${srcdir}/share/$folder" "${pkgdir}/usr/share/$folder"
        done

-       install -Dm755 bin/godot3-bin ${pkgdir}/usr/bin/godot3-bin
+       install -Dm755 bin/godot3-bin ${pkgdir}/usr/bin/godot3
 }