[arch-commits] Commit in godot/repos/community-x86_64 (3 files)

Alexander Rødseth arodseth at gemini.archlinux.org
Thu Jul 29 13:15:28 UTC 2021


    Date: Thursday, July 29, 2021 @ 13:15:27
  Author: arodseth
Revision: 990238

archrelease: copy trunk to community-x86_64

Added:
  godot/repos/community-x86_64/PKGBUILD
    (from rev 990237, godot/trunk/PKGBUILD)
Deleted:
  godot/repos/community-x86_64/06c42d151cf7b70b73dda42eba78e91b05c12814.patch
  godot/repos/community-x86_64/PKGBUILD

------------------------------------------------+
 06c42d151cf7b70b73dda42eba78e91b05c12814.patch |   33 ------
 PKGBUILD                                       |  125 +++++++++++------------
 2 files changed, 62 insertions(+), 96 deletions(-)

Deleted: 06c42d151cf7b70b73dda42eba78e91b05c12814.patch
===================================================================
--- 06c42d151cf7b70b73dda42eba78e91b05c12814.patch	2021-07-29 13:15:22 UTC (rev 990237)
+++ 06c42d151cf7b70b73dda42eba78e91b05c12814.patch	2021-07-29 13:15:27 UTC (rev 990238)
@@ -1,33 +0,0 @@
-From 34e2d2f4f7224ac24dec5f0461d80cb9dfddb827 Mon Sep 17 00:00:00 2001
-From: Marcelo Fernandez <marcelofg55 at gmail.com>
-Date: Mon, 5 Nov 2018 21:34:36 -0300
-Subject: [PATCH] Fix binaries incorrectly detected as shared libraries on some
- linux distros
-
----
- platform/x11/detect.py | 12 ++++++++++++
- 1 file changed, 12 insertions(+)
-
-diff --git a/platform/x11/detect.py b/platform/x11/detect.py
-index ee59e9b5a17..dc5c22b4b3b 100644
---- a/platform/x11/detect.py
-+++ b/platform/x11/detect.py
-@@ -149,6 +149,18 @@ def configure(env):
-     env.Append(CCFLAGS=['-pipe'])
-     env.Append(LINKFLAGS=['-pipe'])
- 
-+    # Check for gcc version >= 6 before adding -no-pie
-+    version = get_compiler_version(env) or [-1, -1]
-+    if using_gcc(env):
-+        if version[0] >= 6:
-+            env.Append(CCFLAGS=["-fpie"])
-+            env.Append(LINKFLAGS=["-no-pie"])
-+    # Do the same for clang should be fine with Clang 4 and higher
-+    if using_clang(env):
-+        if version[0] >= 4:
-+            env.Append(CCFLAGS=["-fpie"])
-+            env.Append(LINKFLAGS=["-no-pie"])
-+
-     ## Dependencies
- 
-     env.ParseConfig('pkg-config x11 --cflags --libs')

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-07-29 13:15:22 UTC (rev 990237)
+++ PKGBUILD	2021-07-29 13:15:27 UTC (rev 990238)
@@ -1,63 +0,0 @@
-# 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.3.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=(bullet embree freetype2 libglvnd libogg libpng libtheora libvorbis
-         libvpx libwebp libxcursor libxi libxinerama libxrandr mbedtls
-         miniupnpc opus opusfile pcre2 zlib zstd)
-optdepends=(alsa-lib pulseaudio)
-source=("$pkgname-$pkgver.tar.gz::https://github.com/godotengine/godot/archive/$pkgver-stable.tar.gz"
-         06c42d151cf7b70b73dda42eba78e91b05c12814.patch)
-b2sums=('1d7ee1703388d98c41524f64a99859216b060daad4502c4118adf31a95d45aa230d058630ae8735282a9b5d9f7c1ee464fb4caf9f92e3e55340370e007102f8d'
-        'b9c02d4620c6d70e5fa828d1cc8aa4a42311c988becec40f4f2c65ce59a637ebf3db45cb91734b8c8c45ff73ec02dff76bcec5326ae42106fc43210a9bd29040')
-
-prepare() {
-  cd $pkgname-$pkgver-stable
-  patch -p1 -R -i../06c42d151cf7b70b73dda42eba78e91b05c12814.patch
-}
-
-build() {
-  # Not unbundled: enet (contains no upstreamed IPv6 support), libwebm (AUR), recast,
-  #                squish (AUR), libsquish, wslay (AUR), xatlas
-  local to_unbundle="bullet certs embree freetype libogg libpng libtheora libvorbis libvpx libwebp mbedtls miniupnpc opus pcre2 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 \
-    system_certs_path=/etc/ssl/certs/ca-certificates.crt \
-    bits=64 \
-    colored=yes \
-    platform=x11 \
-    pulseaudio=yes \
-    target=release_debug \
-    tools=yes \
-    use_llvm=no \
-    CFLAGS="$CFLAGS" \
-    CXXFLAGS="$CXXFLAGS" \
-    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"
-}

Copied: godot/repos/community-x86_64/PKGBUILD (from rev 990237, godot/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-07-29 13:15:27 UTC (rev 990238)
@@ -0,0 +1,62 @@
+# 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.3.2
+pkgrel=3
+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=(bullet embree freetype2 libglvnd libtheora libvorbis libvpx libwebp
+         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=('1d7ee1703388d98c41524f64a99859216b060daad4502c4118adf31a95d45aa230d058630ae8735282a9b5d9f7c1ee464fb4caf9f92e3e55340370e007102f8d')
+
+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:
+  #  enet (contains no upstreamed IPv6 support)
+  #  libsquish, recast, xatlas
+  #  AUR: libwebm, squish, wslay
+  local to_unbundle="bullet certs embree freetype libogg libpng libtheora libvorbis libvpx libwebp mbedtls miniupnpc opus pcre2 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 \
+    system_certs_path=/etc/ssl/certs/ca-certificates.crt \
+    bits=64 \
+    colored=yes \
+    platform=x11 \
+    pulseaudio=yes \
+    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"
+}



More information about the arch-commits mailing list