[arch-commits] Commit in godot/repos (2 files)

Antonio Rojas arojas at gemini.archlinux.org
Tue Dec 28 11:04:12 UTC 2021


    Date: Tuesday, December 28, 2021 @ 11:04:12
  Author: arojas
Revision: 1085516

archrelease: copy trunk to community-staging-x86_64

Added:
  godot/repos/community-staging-x86_64/
  godot/repos/community-staging-x86_64/PKGBUILD
    (from rev 1085515, godot/trunk/PKGBUILD)

----------+
 PKGBUILD |   67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 67 insertions(+)

Copied: godot/repos/community-staging-x86_64/PKGBUILD (from rev 1085515, godot/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-12-28 11:04:12 UTC (rev 1085516)
@@ -0,0 +1,67 @@
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+# Contributor: loqs
+# Contributor: Jorge Araya Navarro <jorgejavieran at yahoo.com.mx>
+# Contributor: Cristian Porras <porrascristian at gmail.com>
+# Contributor: Matthew Bentley <matthew at mtbentley.us>
+
+pkgname=godot
+pkgver=3.4.2
+pkgrel=2
+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 libxcursor libxi libxinerama libxrandr mbedtls miniupnpc opusfile)
+optdepends=(alsa-lib pulseaudio)
+source=("$pkgname-$pkgver.tar.gz::https://github.com/godotengine/godot/archive/$pkgver-stable.tar.gz")
+b2sums=('6bdc40acda57b038ef9fe4b579ac070001a09b4309a288859a5bb1a35b664257941a832c42d11eda6e3837c65689d6e96b4adf9131b6e040661a2b26c19a7d43')
+
+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
+}
+
+build() {
+  # Not unbundled (yet):
+  #  bullet (FS#72924, https://github.com/godotengine/godot/issues/55599)
+  #  certs (FS#72762)
+  #  enet (contains no upstreamed IPv6 support)
+  #  libsquish, recast, xatlas
+  #  AUR: libwebm, squish
+  local to_unbundle="embree freetype libogg libpng libtheora libvorbis libvpx libwebp mbedtls miniupnpc opus pcre2 wslay zlib zstd"
+  local system_libs=""
+  for _lib in $to_unbundle; do
+    system_libs+="builtin_"$_lib"=no "
+    rm -rf thirdparty/$_lib
+  done
+
+  cd $pkgname-$pkgver-stable
+  export BUILD_NAME=arch_linux
+  scons -j16 \
+    bits=64 \
+    colored=yes \
+    platform=x11 \
+    pulseaudio=yes \
+    system_certs_path=/etc/ssl/certs/ca-certificates.crt \
+    target=release_debug \
+    tools=yes \
+    use_llvm=no \
+    CFLAGS="$CFLAGS -fPIC -Wl,-z,relro,-z,now" \
+    CXXFLAGS="$CXXFLAGS -fPIC -Wl,-z,relro,-z,now" \
+    LINKFLAGS="$LDFLAGS" \
+    $system_libs
+}
+
+package() {
+  cd $pkgname-$pkgver-stable
+  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 -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 \
+    "$pkgdir/usr/share/mime/packages/org.godotengine.Godot.xml"
+}



More information about the arch-commits mailing list