From 212c7d1545169a3dd6d48689f78df39b88e040a8 Mon Sep 17 00:00:00 2001 From: Leonid Bobrov Date: Wed, 24 Nov 2021 14:26:38 +0200 Subject: [PATCH] godot: add client and server export templates --- srcpkgs/godot/template | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/srcpkgs/godot/template b/srcpkgs/godot/template index c38f3f8c525a..4dff3f062ddc 100644 --- a/srcpkgs/godot/template +++ b/srcpkgs/godot/template @@ -1,16 +1,14 @@ # Template file for 'godot' pkgname=godot version=3.4 -revision=1 +revision=2 archs="x86_64* i686* aarch64* armv7* ppc64*" wrksrc="${pkgname}-${version}-stable" build_style=scons # Godot contains private copies of libraries # that already have been packaged elsewhere. -# Use builtin bullet for now as it's too old in repos (needs 2.89) -# Toggle to not use builtin once bullet has been updated -make_build_args="platform=x11 tools=yes target=release_debug dev=no progress=no - pulseaudio=no builtin_bullet=false builtin_libpng=false builtin_libvpx=false +make_build_args="dev=no progress=no pulseaudio=no + builtin_bullet=false builtin_libpng=false builtin_libvpx=false builtin_libwebp=false builtin_libogg=false builtin_libtheora=false builtin_opus=false builtin_libvorbis=false builtin_enet=false builtin_zlib=false builtin_freetype=false builtin_mbedtls=false @@ -42,15 +40,25 @@ pre_build() { export CXXFLAGS=" $CXXFLAGS " } +do_build() { + scons ${makejobs} ${make_build_args} tools=yes target=release_debug + scons ${makejobs} ${make_build_args} tools=no target=release + scons ${makejobs} ${make_build_args} tools=no target=release platform=server +} + do_install() { vlicense LICENSE.txt vinstall ${FILESDIR}/godot.desktop 644 /usr/share/applications/ vinstall ${wrksrc}/icon.png 644 /usr/share/pixmaps/ godot.png case "$XBPS_TARGET_MACHINE" in - x86_64*|aarch64*) vbin bin/godot.x11.opt.tools.64 godot;; - ppc64le*) vbin bin/godot.x11.opt.tools.ppc64le godot;; - ppc64*) vbin bin/godot.x11.opt.tools.ppc64 godot;; - *) vbin bin/godot.x11.opt.tools.32 godot;; + x86_64*|aarch64*) _godot_arch=64;; + ppc64le*) _godot_arch=ppc64le;; + ppc64*) _godot_arch=ppc64;; + *) _godot_arch=32;; esac + + vbin bin/godot.x11.opt.tools.$_godot_arch godot + vbin bin/godot.x11.opt.$_godot_arch godot-client + vbin bin/godot.server.opt.$_godot_arch godot-server }