void-packages/srcpkgs/openra/template
2020-02-01 21:55:15 +01:00

32 lines
1 KiB
Bash

# Template file for 'openra'
pkgname=openra
version=20200202
revision=1
archs=noarch
wrksrc="OpenRA-release-${version}"
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"
hostmakedepends="mono unzip curl msbuild-bin"
makedepends="SDL2-devel lua51-devel freetype-devel libopenal-devel libgdiplus-devel"
depends="mono libopenal freetype xdg-utils zenity SDL2 lua51 libgdiplus"
short_desc="Open-source implementation of the Red Alert engine"
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
license="GPL-3.0-or-later"
homepage="http://www.openra.net"
distfiles="https://github.com/OpenRA/OpenRA/archive/release-${version}.tar.gz"
checksum=2e7b6131d76875ff8ed0e288b06cbe617e5e4cdb4c4fd98812dc17a541a5284f
if [ "$XBPS_ENDIAN" = "be" ]; then
broken="Fails to build"
fi
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" lua51 libgdiplus"
fi
pre_build() {
make VERSION="release-${version}" version
make dependencies
}