Date: Wednesday, November 2, 2022 @ 04:51:05
Author: felixonmars
Revision: 1340983
archrelease: copy trunk to community-staging-x86_64
Added:
emptyepsilon/repos/community-staging-x86_64/
emptyepsilon/repos/community-staging-x86_64/PKGBUILD
(from rev 1340982, emptyepsilon/trunk/PKGBUILD)
emptyepsilon/repos/community-staging-x86_64/gcc12.patch
(from rev 1340982, emptyepsilon/trunk/gcc12.patch)
-------------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
gcc12.patch | 10 ++++++++++
2 files changed, 62 insertions(+)
Copied: emptyepsilon/repos/community-staging-x86_64/PKGBUILD (from rev 1340982,
emptyepsilon/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-11-02 04:51:05 UTC (rev 1340983)
@@ -0,0 +1,52 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Mewp <[email protected]>
+
+pkgname=emptyepsilon
+pkgver=2022.03.16
+pkgrel=2
+pkgdesc='Open source spaceship bridge simulator'
+url='https://github.com/daid/EmptyEpsilon'
+arch=('x86_64')
+license=('GPL2')
+depends=('libglvnd' 'libx11' 'libxrandr' 'glibc' 'gcc-libs' 'sdl2')
+makedepends=('git' 'cmake' 'mesa' 'python')
+source=("git+https://github.com/daid/EmptyEpsilon.git#tag=EE-${pkgver}"
+ "git+https://github.com/daid/SeriousProton.git#tag=EE-${pkgver}"
+ gcc12.patch)
+sha512sums=('SKIP'
+ 'SKIP'
+
'479b76b604b4a4fc8152da11775533b8d56eb4bfd688a28ea6c64a39bfe40e5d365ee035f34cf3fa2cfa16d877cb5324bd2b911270e19f55e77d60386b08ed13')
+
+prepare() {
+ patch -Np0 <gcc12.patch
+ # fix shader loading, should be upstreamed
+ sed 's|new Engine();|chdir(RESOURCE_BASE_DIR); new Engine();|' -i
EmptyEpsilon/src/main.cpp
+}
+
+build() {
+ mkdir -p EmptyEpsilon/build
+ cd EmptyEpsilon/build
+ # add cppflags to use fortify
+ export CXXFLAGS="${CXXFLAGS} ${CPPFLAGS}"
+ # release type is important here to get optimisation flags
+ # defined in the project's cmake files
+ cmake -DSERIOUS_PROTON_DIR="${srcdir}/SeriousProton" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCPACK_PACKAGE_VERSION_MAJOR="$(echo ${pkgver} | cut -d. -f1)" \
+ -DCPACK_PACKAGE_VERSION_MINOR="$(echo ${pkgver} | cut -d. -f2)" \
+ -DCPACK_PACKAGE_VERSION_PATCH="$(echo ${pkgver} | cut -d. -f3)" \
+ -DOpenGL_GL_PREFERENCE=GLVND \
+ ..
+ make
+}
+
+package() {
+ cd EmptyEpsilon
+ make -C build DESTDIR="${pkgdir}" install
+ install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/emptyepsilon"
+ mv "${pkgdir}"/usr/share/doc/EmptyEpsilon/script_reference.html
"${pkgdir}/usr/share/doc/emptyepsilon"
+ rmdir "${pkgdir}"/usr/share/doc/EmptyEpsilon
+}
+
+# vim: ts=2 sw=2 et:
Copied: emptyepsilon/repos/community-staging-x86_64/gcc12.patch (from rev
1340982, emptyepsilon/trunk/gcc12.patch)
===================================================================
--- community-staging-x86_64/gcc12.patch (rev 0)
+++ community-staging-x86_64/gcc12.patch 2022-11-02 04:51:05 UTC (rev
1340983)
@@ -0,0 +1,10 @@
+--- SeriousProton/src/io/http/websocket.h.orig 2022-11-02 04:42:17.652740683
+0000
++++ SeriousProton/src/io/http/websocket.h 2022-11-02 04:39:22.718726564
+0000
+@@ -4,6 +4,7 @@
+ #include <nonCopyable.h>
+ #include <io/network/tcpSocket.h>
+ #include <unordered_map>
++#include <memory>
+
+
+ namespace sp {