Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions srcpkgs/godot-export-templates
6 changes: 6 additions & 0 deletions srcpkgs/godot/godot-export-templates.INSTALL.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
For godot-export-templates to work user should symlink templates.
/usr/lib/godot/extra_templates
to
$HOME/.local/share/godot/export_templates/godot/

$ ln -s /usr/lib/godot/export_templates $HOME/.local/share/godot
18 changes: 0 additions & 18 deletions srcpkgs/godot/patches/20-fix-musl.patch

This file was deleted.

125 changes: 0 additions & 125 deletions srcpkgs/godot/patches/editor-split-translation-data.patch

This file was deleted.

23 changes: 0 additions & 23 deletions srcpkgs/godot/patches/fix-glslang.patch

This file was deleted.

93 changes: 71 additions & 22 deletions srcpkgs/godot/template
Original file line number Diff line number Diff line change
@@ -1,31 +1,28 @@
# Template file for 'godot'
pkgname=godot
version=4.5
revision=2
version=4.6.2
revision=1
archs="x86_64* i686* aarch64* armv7* ppc64*"
build_style=scons
make_build_args="platform=linuxbsd target=editor progress=no production=yes
lto=auto builtin_brotli=false builtin_enet=false builtin_glslang=false
builtin_freetype=false builtin_graphite=false builtin_harfbuzz=false
builtin_icu4c=false builtin_libogg=false builtin_libpng=false
builtin_libtheora=false builtin_libvorbis=false builtin_libwebp=false
builtin_mbedtls=false builtin_miniupnpc=false builtin_pcre2=false
builtin_zlib=false builtin_zstd=false engine_update_check=false
x11=yes wayland=yes"
hostmakedepends="pkg-config clang wayland-devel"
makedepends="alsa-lib-devel freetype-devel mesa glu-devel libXcursor-devel
libXi-devel libXinerama-devel libXrender-devel libXrandr-devel libX11-devel
libpng-devel libwebp-devel libogg-devel libtheora-devel libvorbis-devel
libenet-devel zlib-devel mbedtls2-devel miniupnpc-devel pcre2-devel
pulseaudio-devel graphite-devel harfbuzz-devel libzstd-devel glslang-devel
speech-dispatcher-devel brotli-devel icu-devel wayland-devel"
make_build_args="engine_update_check=false builtin_brotli=false builtin_enet=false
builtin_freetype=false builtin_glslang=false builtin_graphite=false builtin_harfbuzz=false
builtin_icu4c=false builtin_libogg=false builtin_libpng=false builtin_libtheora=false
builtin_libvorbis=false builtin_libwebp=false builtin_mbedtls=false builtin_miniupnpc=false
builtin_pcre2=false builtin_zlib=false builtin_zstd=false lto=auto platform=linuxbsd
production=yes progress=no wayland=yes x11=yes tests=yes"
hostmakedepends="pkg-config clang gettext wayland-devel"
makedepends="alsa-lib-devel brotli-devel freetype-devel glslang-devel glu-devel graphite-devel
harfbuzz-devel icu-devel libenet-devel libogg-devel libpng-devel libtheora-devel libvorbis-devel
libwebp-devel libX11-devel libXcursor-devel libXi-devel libXinerama-devel libXrandr-devel
libXrender-devel libzstd-devel mbedtls2-devel mesa miniupnpc-devel pcre2-devel pulseaudio-devel
speech-dispatcher-devel wayland-devel zlib-devel"
depends="speech-dispatcher"
short_desc="Multiplatform 2D and 3D engine"
maintainer="Orphaned <orphan@voidlinux.org>"
maintainer="zenobit <zenobit@disroot.org>"
license="MIT"
homepage="https://www.godotengine.org/"
distfiles="https://github.com/godotengine/godot/archive/${version}-stable.tar.gz"
checksum=0b2c942c79f756da5c94990e06678feaa582ae533b5e126f992a29d1ea8a816c
checksum=908b759e7517fec65d687b3d468cd639fd8967d25da1522ef8a2087af638b3fe
nocross=https://build.voidlinux.org/builders/armv7l_builder/builds/6342/steps/shell_3/logs/stdio

CFLAGS+=" -fPIE -fPIC"
Expand Down Expand Up @@ -65,11 +62,27 @@ post_patch() {
vsed -i misc/dist/linux/org.godotengine.Godot.xml -e 's/name="x/name="application-x/g'
}

do_build() {
# Build editor
scons ${makejobs} target=editor ${make_build_args}

# Build export templates
echo -e "\n\n\nBuilding export templates\n\n\n"
scons ${makejobs} target=template_release ${make_build_args}
echo -e "\n\n\nBuilding export templates DEBUG\n\n\n"
scons ${makejobs} target=template_debug ${make_build_args}
}

do_check() {
# Run tests using the built editor
scons ${makejobs} target=editor ${make_build_args} tests=yes
}

do_install() {
vlicense LICENSE.txt

vinstall misc/dist/linux/org.godotengine.Godot.desktop 644 /usr/share/applications/
vinstall icon.png 644 /usr/share/pixmaps/ godot.png
vinstall misc/dist/linux/org.godotengine.Godot.desktop 644 usr/share/applications/
vinstall icon.png 644 usr/share/pixmaps/ godot.png

case "$XBPS_TARGET_MACHINE" in
x86_64*) vbin bin/godot.linuxbsd.editor.x86_64 godot;;
Expand All @@ -79,6 +92,42 @@ do_install() {
ppc64*) vbin bin/godot.linuxbsd.editor.ppc64 godot;;
esac

vinstall misc/dist/linux/org.godotengine.Godot.xml 644 /usr/share/mime/packages/
vinstall misc/dist/linux/org.godotengine.Godot.xml 644 usr/share/mime/packages/
vman misc/dist/linux/godot.6

# Install for export-templates sub-package
local templatesDir="/usr/lib/godot/export_templates/${version}.stable"
vmkdir "${templatesDir}"

case "$XBPS_TARGET_MACHINE" in
x86_64*)
vinstall bin/godot.linuxbsd.template_release.x86_64 755 "${templatesDir}" linux_release.x86_64
vinstall bin/godot.linuxbsd.template_debug.x86_64 755 "${templatesDir}" linux_debug.x86_64
;;
i686*)
vinstall bin/godot.linuxbsd.template_release.x86_32 755 "${templatesDir}" linux_release.x86_32
vinstall bin/godot.linuxbsd.template_debug.x86_32 755 "${templatesDir}" linux_debug.x86_32
;;
aarch64*)
vinstall bin/godot.linuxbsd.template_release.arm64 755 "${templatesDir}" linux_release.arm64
vinstall bin/godot.linuxbsd.template_debug.arm64 755 "${templatesDir}" linux_debug.arm64
;;
armv7*)
vinstall bin/godot.linuxbsd.template_release.arm32 755 "${templatesDir}" linux_release.arm32
vinstall bin/godot.linuxbsd.template_debug.arm32 755 "${templatesDir}" linux_debug.arm32
;;
ppc64*)
vinstall bin/godot.linuxbsd.template_release.ppc64 755 "${templatesDir}" linux_release.ppc64
vinstall bin/godot.linuxbsd.template_debug.ppc64 755 "${templatesDir}" linux_debug.ppc64
;;
esac
}

godot-export-templates_package() {
short_desc+=" - export templates"
depends="${sourcepkg}>=${version}_${revision}"

pkg_install() {
vmove usr/lib/godot/export_templates
}
}
Loading