void-packages/srcpkgs/freeorion/template
2018-07-31 13:59:13 +02:00

31 lines
1 KiB
Bash

# Template file for 'freeorion'
pkgname=freeorion
version=0.4.7.1
revision=4
_release=${version}_2017-09-03.139ffd9
wrksrc="src-tarball"
build_style=cmake
hostmakedepends="cppcheck doxygen python-pycodestyle"
makedepends="boost-devel boost-python freetype-devel glew-devel
libopenal-devel python-devel SDL2-devel"
depends="${pkgname}-data desktop-file-utils hicolor-icon-theme"
short_desc="Turn-based space empire and galactic conquest (4X) computer game"
maintainer="cr6git <quark6@protonmail.com>"
license="GPL-2.0-or-later"
homepage="http://freeorion.org/index.php/Main_Page"
distfiles="https://github.com/freeorion/freeorion/releases/download/v${version}/FreeOrion_v${_release}_Source.tar.gz"
checksum=15ace123318e46321b95a358439145ad1835d8edbc020afbf295f4919a0fa131
post_extract() {
_build_no=${_release/*_/}
sed -i -e "s|\${FreeOrion_BUILD_NO}|$_build_no|" util/Version.cpp.in
}
freeorion-data_package() {
short_desc+=" - data files"
license="GPL-2.0-or-later, CC-BY-SA-3.0"
noarch=yes
pkg_install() {
vmove usr/share/freeorion
}
}