aboutsummaryrefslogtreecommitdiff
path: root/srcpkgs/freeorion/template
diff options
context:
space:
mode:
Diffstat (limited to 'srcpkgs/freeorion/template')
-rw-r--r--srcpkgs/freeorion/template13
1 files changed, 6 insertions, 7 deletions
diff --git a/srcpkgs/freeorion/template b/srcpkgs/freeorion/template
index f9c39bd3a15..1b54b3b84c5 100644
--- a/srcpkgs/freeorion/template
+++ b/srcpkgs/freeorion/template
@@ -16,11 +16,10 @@ distfiles="https://github.com/freeorion/freeorion/releases/download/v${version}/
checksum=c6f62c3b400d50b336d62508ac5d5d656e4c0c8e57d0ff2b270f72381e68e1db
replaces="freeorion-data>=0"
-if [ "${XBPS_MACHINE}" = "i686" ]; then
- broken="Runs out of memory, see https://build.voidlinux.org/builders/i686_builder/builds/47122/steps/shell_3/logs/stdio"
-fi
-
-post_extract() {
- _build_no=${_release/*_/}
- sed -i -e "s|\${FreeOrion_BUILD_NO}|$_build_no|" util/Version.cpp.in
+pre_configure() {
+ cp util/Version.cpp.in util/Version.cpp
+ if [ "$XBPS_WORDSIZE" = "32" ]; then
+ CXXFLAGS+=" -g1"
+ LDFLAGS+=" -Wl,--no-keep-memory"
+ fi
}