void-packages/srcpkgs/freeorion/template

26 lines
972 B
Bash

# Template file for 'freeorion'
pkgname=freeorion
version=0.5.0.1
revision=2
build_style=cmake
hostmakedepends="cppcheck doxygen python3-pycodestyle"
makedepends="boost-devel libvorbis-devel
freetype-devel glew-devel libopenal-devel python3-devel SDL2-devel"
depends="desktop-file-utils hicolor-icon-theme"
short_desc="Turn-based space empire and galactic conquest (4X) computer game"
maintainer="Emil Tomczyk <emru@emru.xyz>"
license="GPL-2.0-or-later"
homepage="https://freeorion.org/index.php/Main_Page"
changelog="https://raw.githubusercontent.com/freeorion/freeorion/master/ChangeLog.md"
distfiles="https://github.com/freeorion/freeorion/releases/download/v${version}/FreeOrion_v${version}_Source.tar.gz"
checksum=c6f62c3b400d50b336d62508ac5d5d656e4c0c8e57d0ff2b270f72381e68e1db
replaces="freeorion-data>=0"
pre_configure() {
cp util/Version.cpp util/Version.cpp.in
if [ "$XBPS_WORDSIZE" = "32" ]; then
CXXFLAGS+=" -g1"
LDFLAGS+=" -Wl,--no-keep-memory"
fi
}