void-packages/srcpkgs/openra/template
2018-09-23 17:33:26 +02:00

29 lines
962 B
Bash

# Template file for 'openra'
pkgname=openra
version=20180923
revision=1
wrksrc="OpenRA-release-${version}"
noarch=yes
hostmakedepends="mono unzip curl"
makedepends="SDL2-devel lua51-devel freetype-devel libopenal-devel libgdiplus-devel"
depends="mono libopenal freetype xdg-utils zenity SDL2 lua51 libgdiplus"
build_style="gnu-makefile"
make_install_target="install install-linux-shortcuts install-linux-mime
install-linux-appdata install-man-page"
make_install_args="prefix=/usr"
homepage="http://www.openra.net"
short_desc="An open-source implementation of the Red Alert engine"
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
license="GPL-3.0-or-later"
distfiles="https://github.com/OpenRA/OpenRA/archive/release-${version}.tar.gz"
checksum=85943a229a8f927727614055a58200f4a0d4df4ae7a71d7b2443de22abb2d688
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" lua51 libgdiplus"
fi
pre_build() {
make VERSION="release-${version}" version
make dependencies
}