39 lines
1.2 KiB
Bash
39 lines
1.2 KiB
Bash
# Template file for 'freeorion'
|
|
pkgname=freeorion
|
|
version=0.4.8
|
|
revision=3
|
|
_release=${version}_2018-08-23.26f16b0
|
|
wrksrc=src-tarball
|
|
build_style=cmake
|
|
hostmakedepends="cppcheck doxygen python-pycodestyle"
|
|
makedepends="boost-devel 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="Orphaned <orphan@voidlinux.eu>"
|
|
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${_release}_Source.tar.gz"
|
|
checksum=d405dbeb43afb7fa76937cf15cdb10b15e818da171ec1eb03e4a1c3ecbba46f7
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
aarch64)
|
|
broken="ERROR: python-setuptools-40.6.2_1: SHA256 hash is not valid: No such file or directory"
|
|
;;
|
|
esac
|
|
|
|
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
|
|
}
|
|
}
|