~alpine/aports

testing/godot: upgrade to 3.5 v1 PROPOSED

gay: 1
 testing/godot: upgrade to 3.5

 1 files changed, 56 insertions(+), 31 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.alpinelinux.org/~alpine/aports/patches/4134/mbox | git am -3
Learn more about email & git

[PATCH] testing/godot: upgrade to 3.5 Export this patch

* introduce export templates;
* disable pulseaudio;
* don't use builtin embree;
* introduce headless tools;
* unblock other arches;
* don't use builtin certificates;
* package PNG icon too, useful where SVG icons are not supported.
---
 testing/godot/APKBUILD | 87 +++++++++++++++++++++++++++---------------
 1 file changed, 56 insertions(+), 31 deletions(-)

diff --git a/testing/godot/APKBUILD b/testing/godot/APKBUILD
index fadd481d38..6ab09e26cb 100644
--- a/testing/godot/APKBUILD
+++ b/testing/godot/APKBUILD
@@ -1,15 +1,17 @@
# Contributor: Díaz Urbaneja Diego <sodomon2@gmail.com>
# Maintainer: Díaz Urbaneja Diego <sodomon2@gmail.com>
pkgname=godot
pkgver=3.4.4
pkgrel=1
pkgver=3.5
pkgrel=0
pkgdesc="Multi-platform 2D and 3D game engine"
url="https://godotengine.org"
license="MIT"
arch="armv7 x86_64" # Other architectures untested
arch="all" # Only armv7 and x86_64 are tested, give other architectures a try
makedepends="
	alsa-lib-dev
	bullet-dev
	ca-certificates-bundle
	embree-dev
	enet-dev
	freetype-dev
	libgudev-dev
@@ -29,7 +31,6 @@ makedepends="
	miniupnpc-dev
	opusfile-dev
	pcre2-dev
	pulseaudio-dev
	python3-dev
	scons
	wslay-dev
@@ -42,43 +43,67 @@ source="https://github.com/godotengine/godot/archive/$pkgver-stable/godot-$pkgve
	"
options="!check" # No tests
builddir="$srcdir"/godot-"$pkgver"-stable
sconsflags="builtin_bullet=false \
	builtin_certs=false \
	builtin_embree=false \
	builtin_enet=false \
	builtin_freetype=false \
	builtin_libogg=false \
	builtin_libpng=false \
	builtin_libtheora=false \
	builtin_libvorbis=false \
	builtin_libvpx=false \
	builtin_libwebp=false \
	builtin_mbedtls=false \
	builtin_miniupnpc=false \
	builtin_opus=false \
	builtin_pcre2=false \
	builtin_wslay=false \
	builtin_zlib=false \
	builtin_zstd=false \
	pulseaudio=no
	"

build() {
	scons -j${JOBS:-1} \
		platform=linuxbsd \
		target=release_debug \
		bits=default \
		platform=x11 \
		builtin_bullet=false \
		builtin_enet=false \
		builtin_freetype=false \
		builtin_libogg=false \
		builtin_libpng=false \
		builtin_libtheora=false \
		builtin_libvorbis=false \
		builtin_libvpx=false \
		builtin_libwebp=false \
		builtin_wslay=false \
		builtin_mbedtls=false \
		builtin_miniupnpc=false \
		builtin_opus=false \
		builtin_pcre2=false \
		builtin_zlib=false \
		builtin_zstd=false
	for platform in x11 server
	do
		for target in release release_debug
		do
			for tools in yes no
			do
				if [ "x$tools" = "xyes" ] && [ "x$target" = "xrelease" ]
				then
					continue
				fi
				scons -j${JOBS:-1} \
					platform=$platform \
					target=$target \
					tools=$tools \
					$sconsflags
			done
		done
	done
}

package() {
	install -Dm644 misc/dist/linux/org.godotengine.Godot.desktop \
		"$pkgdir"/usr/share/applications/godot.desktop
	install -Dm644 icon.png "$pkgdir"/usr/share/pixmaps/godot.png
	install -Dm644 icon.svg "$pkgdir"/usr/share/pixmaps/godot.svg
	test -f bin/godot.x11.opt.tools.32 && \
		install -D -m755 bin/godot.x11.opt.tools.32 "$pkgdir"/usr/bin/godot
	test -f bin/godot.x11.opt.tools.64 && \
		install -D -m755 bin/godot.x11.opt.tools.64 "$pkgdir"/usr/bin/godot
	install -D -m644 misc/dist/linux/godot.6 "$pkgdir"/usr/share/man/man6/godot.6
	install -Dm644 misc/dist/linux/godot.6 "$pkgdir"/usr/share/man/man6/godot.6

	# editors, use headless for packaging games
	install -Dm755 bin/godot.x11.opt.tools.[36]* "$pkgdir"/usr/bin/godot
	install -Dm755 bin/godot_server.x11.opt.tools.[36]* "$pkgdir"/usr/bin/godot-headless

	# export templates, use for packaging games and playing with musl libc or non-x86 CPU
	install -Dm755 bin/godot.x11.opt.[36]* "$pkgdir"/usr/bin/godot-client
	install -Dm755 bin/godot.x11.opt.debug.[36]* "$pkgdir"/usr/bin/godot-client-debug
	install -Dm755 bin/godot_server.x11.opt.[36]* "$pkgdir"/usr/bin/godot-server
	install -Dm755 bin/godot_server.x11.opt.debug.[36]* "$pkgdir"/usr/bin/godot-server-debug
}

sha512sums="
bfe6a04569c1a0a1dd8eb98869b22c35207c653fd5ad9e4429568474b27ab745558474dc276e4ba72dadfe4d0781c8651bc58f69a2448a382f57eb2c0ac22ee9  godot-3.4.4-stable.tar.gz
7bb6552792ae53d9b5c8fc07df2984ea0ff2a6f3d8e1416101464bb1a3a727d88ce8facc518c994958f96f34aa3fa6383552ff54c6b9cb2988fd3ad8ad012e6c  godot-3.5-stable.tar.gz
a3853b7e23b0684e44dbf67c7cbddfa3ea8b1154347a1aa58870d66a213d05bb1ad8b6fdc4106239e0c1a1efcd174b0544ff0d6bbb516a0fe9f516ad2514400b  no-execinfo.patch
"
-- 
2.36.2
oups, didn't notice `git --amend` didn't work,
ignore this patch, gonna send another one