diff options
author | Cem Keylan <cem@ckyln.com> | 2023-07-15 13:12:00 +0200 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2023-07-15 13:12:12 +0200 |
commit | 4fa595b62719f477d7d5211d43f4141f004b0d7c (patch) | |
tree | c6024b03693c02fbc56d36409b2c3f347904f431 /community/godot3/build | |
parent | a5f96af2912c300e977d85a77506e4dac0fcd97d (diff) | |
download | repository-4fa595b62719f477d7d5211d43f4141f004b0d7c.tar.gz |
godot: rename to godot3
Diffstat (limited to 'community/godot3/build')
-rwxr-xr-x | community/godot3/build | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/community/godot3/build b/community/godot3/build new file mode 100755 index 00000000..0acc437c --- /dev/null +++ b/community/godot3/build @@ -0,0 +1,44 @@ +#!/bin/sh -e + +# Temporarily install scons to build godot +( + cd scons + + python3 setup.py build + python3 setup.py install \ + --prefix=/usr \ + --root="$PWD/dist" + +) + +PYTHONPATH=$(./pythonpath) +PATH=$PWD/scons/dist/usr/bin:$PATH + +export PYTHONPATH PATH + +clsed 's/#ifdef CRASH_HANDLER_ENABLED/#if defined(CRASH_HANDLER_ENABLED) \&\& defined(__GLIBC__)/' \ + platform/x11/crash_handler_x11.cpp + +# Fix build with GCC13 +clsed '/^#define/a#include <cstdint>' \ + modules/fbx/fbx_parser/FBXCommon.h \ + thirdparty/vhacd/inc/vhacdManifoldMesh.h + +scons \ + platform=x11 \ + target=release_debug \ + tools=yes \ + dev=no \ + progress=yes \ + arch=x64 \ + builtin_libwebp=false \ + builtin_zlib=false \ + builtin_freetype=false \ + builtin_libvorbis=false \ + builtin_libogg=false \ + builtin_opus=false \ + builtin_libtheora=false + +clinst -Dm755 bin/godot.x11.opt.tools.x64 "$1/usr/bin/godot" +clinst -Dm644 icon.png "$1/usr/share/pixmaps/godot.png" +clinst -Dm644 godot.desktop "$1/usr/share/applications/godot.desktop" |