--- A/PKGBUILD 2023-02-28 14:35:27.000000000 -0600 +++ B/PKGBUILD 2023-03-06 13:41:30.501949426 -0600 @@ -1,52 +1,50 @@ # Maintainer: Alexander F. Rødseth +# Contributor: HurricanePootis # Contributor: loqs # Contributor: Jorge Araya Navarro # Contributor: Cristian Porras # Contributor: Matthew Bentley pkgname=godot -pkgver=3.5.1 -pkgrel=4 +pkgver=4.0 +pkgrel=1 pkgdesc='Advanced cross-platform 2D and 3D game engine' url='https://godotengine.org' license=(MIT) arch=(x86_64) makedepends=(gcc scons yasm alsa-lib pulseaudio) -depends=(embree freetype2 libglvnd libtheora libvorbis libvpx libwebp libwslay - libsquish libxcursor libxi libxinerama libxrandr mbedtls miniupnpc opusfile) +depends=(embree freetype2 glslang graphite harfbuzz-icu libglvnd libtheora libvorbis libwebp libwslay + libsquish libxcursor libxi libxinerama libxrandr mbedtls miniupnpc opusfile vulkan-driver pcre2 libspeechd) optdepends=(pipewire-alsa pipewire-pulse) source=("$pkgname-$pkgver.tar.gz::https://github.com/godotengine/godot/archive/$pkgver-stable.tar.gz") -b2sums=('e8a209972fc680ce9c024762715c64ea36f9d1ca223c6911a5179ff1cff3c2a143b703bb5b41f198b8b3ed5bd2c474316177bda094a3ef34d06e2dcf2adb2815') +b2sums=('eea911f510d1b5fb55e7b8ed2e088fb549c550b6e951b850a4ca677ca1f52358a96ad8416f592042074338fd94becc4d85e37e7428c1094b1b9a4fd6580e32b8') prepare() { # Disable the check that adds -no-pie to LINKFLAGS, for gcc != 6 - sed -i 's,0] >,0] =,g' $pkgname-$pkgver-stable/platform/x11/detect.py + sed -i 's,0] >,0] =,g' $pkgname-$pkgver-stable/platform/linuxbsd/detect.py } build() { # Not unbundled (yet): - # bullet (FS#72924, https://github.com/godotengine/godot/issues/55599) # certs (FS#72762) # enet (contains no upstreamed IPv6 support) - # recast, xatlas + # recast, xatlas, rvo2 # AUR: libwebm - local to_unbundle="embree freetype libogg libpng libsquish libtheora libvorbis libvpx libwebp mbedtls miniupnpc opus pcre2 wslay zlib zstd" + local to_unbundle="embree freetype glslang graphite harfbuzz icu4c libogg libpng libsquish libtheora libvorbis libwebp wslay mbedtls miniupnpc opus pcre2 zlib zstd" local system_libs="" for _lib in $to_unbundle; do system_libs+="builtin_"$_lib"=no " - rm -rf thirdparty/$_lib + rm -rf "$srcdir/$pkgname-$pkgver-stable"/thirdparty/$_lib done cd $pkgname-$pkgver-stable export BUILD_NAME=arch_linux scons -j16 \ - bits=64 \ - colored=yes \ - platform=x11 \ + arch=x86_64 \ + platform=linuxbsd \ pulseaudio=yes \ system_certs_path=/etc/ssl/certs/ca-certificates.crt \ - target=release_debug \ - tools=yes \ + target=editor \ use_llvm=no \ CFLAGS="$CFLAGS -fPIC -Wl,-z,relro,-z,now -w" \ CXXFLAGS="$CXXFLAGS -fPIC -Wl,-z,relro,-z,now -w" \ @@ -59,7 +57,7 @@ install -Dm644 misc/dist/linux/org.godotengine.Godot.desktop \ "$pkgdir/usr/share/applications/godot.desktop" install -Dm644 icon.svg "$pkgdir/usr/share/pixmaps/godot.svg" - install -Dm755 bin/godot.x11.opt.tools.64 "$pkgdir/usr/bin/$pkgname" + install -Dm755 bin/godot.linuxbsd.editor.x86_64 "$pkgdir/usr/bin/$pkgname" install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/godot/LICENSE" install -Dm644 misc/dist/linux/godot.6 "$pkgdir/usr/share/man/man6/godot.6" install -Dm644 misc/dist/linux/org.godotengine.Godot.xml \