Skip to content

Commit f8cae10

Browse files
zen0bitRutpiv
andcommitted
godot: update to 4.5.1, add godot-export-templates subpackage
Co-authored-by: Roger Freitas Pereira <[email protected]>
1 parent 637d6a6 commit f8cae10

File tree

4 files changed

+116
-146
lines changed

4 files changed

+116
-146
lines changed

srcpkgs/godot-export-templates

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
godot
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
For godot-export-templates to work user should symlink templates.
2+
/usr/lib/godot/extra_templates
3+
to
4+
$HOME/.local/share/godot/export_templates/godot/
5+
6+
$ ln -s /usr/lib/godot/export_templates $HOME/.local/share/godot

srcpkgs/godot/patches/editor-split-translation-data.patch

Lines changed: 0 additions & 125 deletions
This file was deleted.

srcpkgs/godot/template

Lines changed: 109 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,72 @@
11
# Template file for 'godot'
22
pkgname=godot
3-
version=4.5
3+
version=4.5.1
44
revision=1
55
archs="x86_64* i686* aarch64* armv7* ppc64*"
66
build_style=scons
7-
make_build_args="platform=linuxbsd target=editor progress=no production=yes
8-
lto=auto builtin_brotli=false builtin_enet=false builtin_glslang=false
9-
builtin_freetype=false builtin_graphite=false builtin_harfbuzz=false
10-
builtin_icu4c=false builtin_libogg=false builtin_libpng=false
11-
builtin_libtheora=false builtin_libvorbis=false builtin_libwebp=false
12-
builtin_mbedtls=false builtin_miniupnpc=false builtin_pcre2=false
13-
builtin_zlib=false builtin_zstd=false engine_update_check=false
14-
x11=yes wayland=yes"
15-
hostmakedepends="pkg-config clang wayland-devel"
16-
makedepends="alsa-lib-devel freetype-devel mesa glu-devel libXcursor-devel
17-
libXi-devel libXinerama-devel libXrender-devel libXrandr-devel libX11-devel
18-
libpng-devel libwebp-devel libogg-devel libtheora-devel libvorbis-devel
19-
libenet-devel zlib-devel mbedtls2-devel miniupnpc-devel pcre2-devel
20-
pulseaudio-devel graphite-devel harfbuzz-devel libzstd-devel glslang-devel
21-
speech-dispatcher-devel brotli-devel icu-devel wayland-devel"
7+
make_build_args="
8+
engine_update_check=false
9+
builtin_brotli=false
10+
builtin_enet=false
11+
builtin_freetype=false
12+
builtin_glslang=false
13+
builtin_graphite=false
14+
builtin_harfbuzz=false
15+
builtin_icu4c=false
16+
builtin_libogg=false
17+
builtin_libpng=false
18+
builtin_libtheora=false
19+
builtin_libvorbis=false
20+
builtin_libwebp=false
21+
builtin_mbedtls=false
22+
builtin_miniupnpc=false
23+
builtin_pcre2=false
24+
builtin_zlib=false
25+
builtin_zstd=false
26+
lto=auto
27+
platform=linuxbsd
28+
production=yes
29+
progress=no
30+
wayland=yes
31+
x11=yes"
32+
hostmakedepends="pkg-config clang gettext wayland-devel"
33+
makedepends="
34+
alsa-lib-devel
35+
brotli-devel
36+
freetype-devel
37+
glslang-devel
38+
glu-devel
39+
graphite-devel
40+
harfbuzz-devel
41+
icu-devel
42+
libenet-devel
43+
libogg-devel
44+
libpng-devel
45+
libtheora-devel
46+
libvorbis-devel
47+
libwebp-devel
48+
libX11-devel
49+
libXcursor-devel
50+
libXi-devel
51+
libXinerama-devel
52+
libXrandr-devel
53+
libXrender-devel
54+
libzstd-devel
55+
mbedtls2-devel
56+
mesa
57+
miniupnpc-devel
58+
pcre2-devel
59+
pulseaudio-devel
60+
speech-dispatcher-devel
61+
wayland-devel
62+
zlib-devel"
2263
depends="speech-dispatcher"
2364
short_desc="Multiplatform 2D and 3D engine"
24-
maintainer="Orphaned <orphan@voidlinux.org>"
65+
maintainer="zenobit <zenobit@disroot.org>"
2566
license="MIT"
2667
homepage="https://www.godotengine.org/"
2768
distfiles="https://github.com/godotengine/godot/archive/${version}-stable.tar.gz"
28-
checksum=0b2c942c79f756da5c94990e06678feaa582ae533b5e126f992a29d1ea8a816c
69+
checksum=c62a6eafc4a2de44fda3ad2db6dbe989726cd4c37537e0af119eeb6886fe49f2
2970
nocross=https://build.voidlinux.org/builders/armv7l_builder/builds/6342/steps/shell_3/logs/stdio
3071

3172
CFLAGS+=" -fPIE -fPIC"
@@ -65,11 +106,22 @@ post_patch() {
65106
vsed -i misc/dist/linux/org.godotengine.Godot.xml -e 's/name="x/name="application-x/g'
66107
}
67108

109+
do_build() {
110+
# Build editor
111+
scons ${makejobs} target=editor ${make_build_args}
112+
113+
# Build export templates
114+
echo -e "\n\n\nBuilding export templates\n\n\n"
115+
scons ${makejobs} target=template_release ${make_build_args}
116+
echo -e "\n\n\nBuilding export templates DEBUG\n\n\n"
117+
scons ${makejobs} target=template_debug ${make_build_args}
118+
}
119+
68120
do_install() {
69121
vlicense LICENSE.txt
70122

71-
vinstall misc/dist/linux/org.godotengine.Godot.desktop 644 /usr/share/applications/
72-
vinstall icon.png 644 /usr/share/pixmaps/ godot.png
123+
vinstall misc/dist/linux/org.godotengine.Godot.desktop 644 usr/share/applications/
124+
vinstall icon.png 644 usr/share/pixmaps/ godot.png
73125

74126
case "$XBPS_TARGET_MACHINE" in
75127
x86_64*) vbin bin/godot.linuxbsd.editor.x86_64 godot;;
@@ -79,6 +131,42 @@ do_install() {
79131
ppc64*) vbin bin/godot.linuxbsd.editor.ppc64 godot;;
80132
esac
81133

82-
vinstall misc/dist/linux/org.godotengine.Godot.xml 644 /usr/share/mime/packages/
134+
vinstall misc/dist/linux/org.godotengine.Godot.xml 644 usr/share/mime/packages/
83135
vman misc/dist/linux/godot.6
136+
137+
# Install for export-templates sub-package
138+
local templatesDir="/usr/lib/godot/export_templates/${version}.stable"
139+
vmkdir "${templatesDir}"
140+
141+
case "$XBPS_TARGET_MACHINE" in
142+
x86_64*)
143+
vinstall bin/godot.linuxbsd.template_release.x86_64 755 "${templatesDir}" linux_release.x86_64
144+
vinstall bin/godot.linuxbsd.template_debug.x86_64 755 "${templatesDir}" linux_debug.x86_64
145+
;;
146+
i686*)
147+
vinstall bin/godot.linuxbsd.template_release.x86_32 755 "${templatesDir}" linux_release.x86_32
148+
vinstall bin/godot.linuxbsd.template_debug.x86_32 755 "${templatesDir}" linux_debug.x86_32
149+
;;
150+
aarch64*)
151+
vinstall bin/godot.linuxbsd.template_release.arm64 755 "${templatesDir}" linux_release.arm64
152+
vinstall bin/godot.linuxbsd.template_debug.arm64 755 "${templatesDir}" linux_debug.arm64
153+
;;
154+
armv7*)
155+
vinstall bin/godot.linuxbsd.template_release.arm32 755 "${templatesDir}" linux_release.arm32
156+
vinstall bin/godot.linuxbsd.template_debug.arm32 755 "${templatesDir}" linux_debug.arm32
157+
;;
158+
ppc64*)
159+
vinstall bin/godot.linuxbsd.template_release.ppc64 755 "${templatesDir}" linux_release.ppc64
160+
vinstall bin/godot.linuxbsd.template_debug.ppc64 755 "${templatesDir}" linux_debug.ppc64
161+
;;
162+
esac
163+
}
164+
165+
godot-export-templates_package() {
166+
short_desc+=" - export templates"
167+
depends="${sourcepkg}>=${version}_${revision}"
168+
169+
pkg_install() {
170+
vmove usr/lib/godot/export_templates
171+
}
84172
}

0 commit comments

Comments
 (0)