From eaad06abd1d9b65ed690fd13a9af9c4d3c611c31 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Mon, 26 Sep 2022 19:50:36 +0200 Subject: godot: add new package at 3.5 --- community/godot/build | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100755 community/godot/build (limited to 'community/godot/build') diff --git a/community/godot/build b/community/godot/build new file mode 100755 index 00000000..aba972ea --- /dev/null +++ b/community/godot/build @@ -0,0 +1,39 @@ +#!/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 + +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" -- cgit v1.2.3