freeorion: fix linking step

This commit is contained in:
Đoàn Trần Công Danh 2024-04-12 10:08:21 +07:00
parent 6157778907
commit a0f8ddef7d

View file

@ -16,11 +16,10 @@ distfiles="https://github.com/freeorion/freeorion/releases/download/v${version}/
checksum=c6f62c3b400d50b336d62508ac5d5d656e4c0c8e57d0ff2b270f72381e68e1db checksum=c6f62c3b400d50b336d62508ac5d5d656e4c0c8e57d0ff2b270f72381e68e1db
replaces="freeorion-data>=0" replaces="freeorion-data>=0"
if [ "${XBPS_MACHINE}" = "i686" ]; then pre_configure() {
broken="Runs out of memory, see https://build.voidlinux.org/builders/i686_builder/builds/47122/steps/shell_3/logs/stdio" cp util/Version.cpp.in util/Version.cpp
fi if [ "$XBPS_WORDSIZE" = "32" ]; then
CXXFLAGS+=" -g1"
post_extract() { LDFLAGS+=" -Wl,--no-keep-memory"
_build_no=${_release/*_/} fi
sed -i -e "s|\${FreeOrion_BUILD_NO}|$_build_no|" util/Version.cpp.in
} }