Date: Monday, August 23, 2021 @ 13:49:41 Author: kgizdov Revision: 1004365
archrelease: copy trunk to community-testing-x86_64 Added: spring/repos/community-testing-x86_64/ spring/repos/community-testing-x86_64/PKGBUILD (from rev 1004364, spring/trunk/PKGBUILD) spring/repos/community-testing-x86_64/spring-gcc11.patch (from rev 1004364, spring/trunk/spring-gcc11.patch) --------------------+ PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ spring-gcc11.patch | 25 +++++++++++++++++++++++++ 2 files changed, 76 insertions(+) Copied: spring/repos/community-testing-x86_64/PKGBUILD (from rev 1004364, spring/trunk/PKGBUILD) =================================================================== --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2021-08-23 13:49:41 UTC (rev 1004365) @@ -0,0 +1,51 @@ +# Maintainer: Sven-Hendrik Haase <svenst...@gmail.com> +# Contributor: Arkham <arkham at archlinux dot us> +# Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org> + +pkgname=spring +pkgver=105.0.1 +_commit=8581792 +pkgrel=2 +pkgdesc='A free 3D real-time-strategy (RTS) game engine' +arch=('x86_64') +url="http://springrts.com/" +license=('GPL') +depends=('openal' 'glew' 'boost-libs' 'freetype2' 'devil' 'libvorbis' 'sdl2' 'libunwind' + 'libxcursor' 'curl' 'shared-mime-info' 'desktop-file-utils' 'libx11') +makedepends=('boost' 'cmake' 'zip' 'xz' 'p7zip' 'python' 'jdk8-openjdk' 'mesa' 'git' 'gcc10') +optdepends=('python: python-based bots' + 'java-runtime: java-based bots') +source=(git+https://github.com/spring/spring.git#commit=$_commit + spring-gcc11.patch) +sha512sums=('SKIP' + 'b30c666828fd2a1acdd64b505928f7d732479d6985590ea0d8926f3a19dc4b7aa95c80326e72f283d6de1ff17b9763ea0cbc88c71da0d6a77a2db301da9dce49') + +prepare() { + cd spring + git submodule update --init + + patch -Np1 -i "$srcdir"/spring-gcc11.patch +} + +build() { + cd spring + + export CXX=g++-10 + cmake . \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DDATADIR=share/spring \ + -DJAVA_HOME=/usr/lib/jvm/java-8-openjdk \ + -DCMAKE_SKIP_RPATH=ON + make +} + +package() { + cd spring + + DESTDIR="$pkgdir" make install + + install -d "$pkgdir/etc/spring" + echo '$HOME/.spring' > "$pkgdir/etc/spring/datadir" +} + +# vim sw=2:ts=2 et: Copied: spring/repos/community-testing-x86_64/spring-gcc11.patch (from rev 1004364, spring/trunk/spring-gcc11.patch) =================================================================== --- community-testing-x86_64/spring-gcc11.patch (rev 0) +++ community-testing-x86_64/spring-gcc11.patch 2021-08-23 13:49:41 UTC (rev 1004365) @@ -0,0 +1,25 @@ +diff --git a/rts/Map/SMF/ROAM/Patch.h b/rts/Map/SMF/ROAM/Patch.h +index c7f311beee..f3a6fba96f 100644 +--- a/rts/Map/SMF/ROAM/Patch.h ++++ b/rts/Map/SMF/ROAM/Patch.h +@@ -10,6 +10,7 @@ + + #include <array> + #include <vector> ++#include <limits> + + + class CSMFGroundDrawer; +diff --git a/rts/Sim/Weapons/WeaponLoader.cpp b/rts/Sim/Weapons/WeaponLoader.cpp +index fd98590971..771d830583 100644 +--- a/rts/Sim/Weapons/WeaponLoader.cpp ++++ b/rts/Sim/Weapons/WeaponLoader.cpp +@@ -26,6 +26,8 @@ + #include "Sim/Units/UnitDef.h" + #include "System/Log/ILog.h" + ++#include <limits> ++ + static std::array<uint8_t, 2048> udWeaponCounts; + + WeaponMemPool weaponMemPool;