void-packages/srcpkgs/warzone2100/template

28 lines
1.0 KiB
Bash

# Template file for 'warzone2100'
pkgname=warzone2100
version=3.4.1
revision=2
wrksrc="warzone2100"
build_style=cmake
configure_args="-DWZ_ENABLE_WARNINGS_AS_ERRORS=OFF -DWZ_DISTRIBUTOR=void"
hostmakedepends="zip unzip asciidoc gettext pkg-config qt5-qmake qt5-host-tools"
makedepends="libpng-devel fribidi-devel fontconfig-devel SDL2-devel libvorbis-devel
libtheora-devel libopenal-devel glew-devel physfs-devel harfbuzz-devel
qt5-script-devel libsodium-devel libcurl-devel"
depends="desktop-file-utils warzone2100-data"
short_desc="3D realtime strategy game on a future Earth"
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
license="GPL-2.0-or-later"
homepage="http://wz2100.net"
distfiles="https://github.com/Warzone2100/${pkgname}/releases/download/${version}/${pkgname}_src.tar.xz"
checksum=ea2cd7f016118a89244ebef8ce9424f71c060bcd5895b791d3e1cec02b555b69
nocross="fails to detect SDL2 when cross-compiling"
warzone2100-data_package() {
short_desc+=" - data files"
pkg_install() {
vmove usr/share/doc
vmove usr/share/${sourcepkg}
}
}