Package Details: godot-mono-git 4.2.r6531.ga48b99a-1

Git Clone URL: https://aur.archlinux.org/godot-mono-git.git (read-only, click to copy)
Package Base: godot-mono-git
Description: An advanced, feature packed, multi-platform 2D and 3D game engine built properly
Upstream URL: https://godotengine.org/
Licenses: MIT
Conflicts: godot-mono
Provides: godot-mono
Submitter: tas
Maintainer: FabioLolix (HurricanePootis)
Last Packager: FabioLolix
Votes: 5
Popularity: 0.000965
First Submitted: 2021-10-26 08:46 (UTC)
Last Updated: 2024-07-20 19:10 (UTC)

Latest Comments

« First ‹ Previous 1 2

LennyPhoenix commented on 2023-03-06 21:47 (UTC)

Hi, I got it working with the latest release.

Here is the diff:

diff --git a/PKGBUILD b/PKGBUILD
index 6719c3b..69a7a4c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,23 +5,24 @@

 _pkgname=godot
 pkgname=${_pkgname}-mono-git
-pkgver=4.0.r1.897afb6
+pkgver=4.1.r1.5f2137a
 pkgrel=1
 pkgdesc="Godot Game Engine: An advanced, feature packed, multi-platform 2D and 3D game engine. (C#/Mono integration)"
 url="http://www.godotengine.org"
 license=('MIT')
 arch=('i686' 'x86_64')
 makedepends=('git' 'scons' 'pulseaudio' 'pkgconf' 'xorg-xrandr' 'yasm')                 
-depends=('glu' 'libxcursor' 'libxinerama' 'alsa-lib' 'freetype2' 'mesa' 'mono')
+depends=('glu' 'libxcursor' 'libxinerama' 'alsa-lib' 'freetype2' 'mesa' 'mono' 'dotnet-sdk-6.0' 'msbuild')
 optdepends=()
 conflicts=("godot-mono")
 provides=("godot-mono")
 _arch=''
 if test "$CARCH" == x86_64; then
-  _arch=('64')
+  _arch=('x86_64')
 else
   _arch=('32')
 fi
+_bin="godot.linuxbsd.editor.${_arch}.mono"

 source=(
        godot-mono.desktop
@@ -56,10 +57,10 @@ pkgver() {
 build() {
     cd "${srcdir}"/${_pkgname}
     sed -n '/\/* Copyright/,/IN THE SOFTWARE./p' main/main.cpp | sed 's/\/\*//' | sed 's/\*\///' > LICENSE
-    scons platform=linuxbsd werror=no tools=yes module_mono_enabled=yes mono_glue=no $MAKEFLAGS
-    ./bin/godot.linuxbsd.tools.${_arch}.mono --generate-mono-glue modules/mono/glue
-    scons platform=linuxbsd target=release_debug werror=no tools=yes module_mono_enabled=yes mono_glue=yes $MAKEFLAGS
-    scons platform=linuxbsd target=release_debug werror=no tools=no module_mono_enabled=yes mono_glue=yes $MAKEFLAGS
+
+    scons platform=linuxbsd werror=no target=editor module_mono_enabled=yes mono_glue=no $MAKEFLAGS
+    ./bin/${_bin} --generate-mono-glue modules/mono/glue
+    ./modules/mono/build_scripts/build_assemblies.py --godot-output-dir=./bin --godot-platform=linuxbsd
 }

 package() {
@@ -71,12 +72,11 @@ package() {

     cd "${srcdir}"/${_pkgname}

-    # install -D -m755 bin/godot.linuxbsd.opt.tools.${_arch}.mono "${pkgdir}"/usr/bin/godot
-    mkdir "${pkgdir}"/opt
-    mkdir "${pkgdir}"/usr/bin
-    cp -R bin/ "${pkgdir}"/opt/godot-mono
-    chmod -R 755 "${pkgdir}"/opt/godot-mono
-    ln -s /opt/godot-mono/godot.linuxbsd.opt.tools.${_arch}.mono "${pkgdir}"/usr/bin/godot-mono
-    install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/godot-mono-git/LICENSE
+    install -D -m755 bin/${_bin} "${pkgdir}"/opt/godot-mono/${_bin}
+    cp -R bin/GodotSharp "${pkgdir}"/opt/godot-mono/GodotSharp
+    mkdir -p "${pkgdir}"/usr/bin
+    ln -s /opt/godot-mono/${_bin} "${pkgdir}"/usr/bin/godot-mono
+
+    install -D -m644 LICENSE.txt "${pkgdir}"/usr/share/licenses/godot-mono-git/LICENSE
 }

nfiss commented on 2022-11-01 12:45 (UTC)

PKGBUILD is incompatible with latest master

You can modify PKGBUILD to reset to an older commit before building, though. I found that alpha 12 still works, but 15 doesn't, didn't try 13/14.

alpha 12 commit hash 2c11e6d9efc42370a8d7537eaff8b1ea78a283e5

artfox3 commented on 2022-05-28 19:26 (UTC) (edited on 2022-05-28 19:31 (UTC) by artfox3)

I get this error when compiling:

RuntimeError: Cannot find MSBuild executable
scons: building terminated because of errors.
[Time elapsed: 00:00:05.641]
 ==> ERROR: A failure occurred in build().
 Aborting...
error: failed to build 'godot-mono-git-4.0.r1.897afb6-1': 
error: packages failed to build: godot-mono-git-4.0.r1.897afb6-1

newfoldergames commented on 2021-11-06 12:00 (UTC)

Dear tas,

After compiling, I get this error.

Ranlib Library         ==> core/libcore.linuxbsd.tools.64.a
[Initial build] Linking Program        ==> bin/godot.linuxbsd.tools.64.mono
[Initial build] scons: done building targets.
[Time elapsed: 00:05:50.925]
/home/newfolder/.cache/yay/godot-mono-git/PKGBUILD: line 60: ./bin/godot.linuxbsd.opt.tools.64.mono: No such file or directory
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: godot-mono-git

I tried modifying PKGBUILD file, but it does not seem to work either.