void-packages/srcpkgs/hedgewars/template
2017-11-20 21:41:36 +01:00

39 lines
1.3 KiB
Bash

# Template file for 'hedgewars'
pkgname=hedgewars
version=0.9.22
revision=5
wrksrc="${pkgname}-src-${version}"
build_style=cmake
configure_args="-DNOSERVER=1 -DDATA_INSTALL_DIR=/usr/share/${pkgname}
-DPHYSFS_SYSTEM=1 -DCMAKE_VERBOSE_MAKEFILE=1 -DMINIMAL_FLAGS=1"
hostmakedepends="lua51 pkg-config fpc qt-qmake"
makedepends="qt-devel SDL_net-devel SDL_mixer-devel SDL_image-devel SDL_ttf-devel
lua51-devel physfs-devel libpng-devel ffmpeg-devel libfreeglut-devel"
depends="hedgewars-data>=${version}_${revision} libfreeglut"
short_desc="Funny turn-based artillery game, featuring fighting Hedgehogs!"
maintainer="Jakub Skrzypnik <jot.skrzyp@gmail.com>"
license="GPL-2"
homepage="http://hedgewars.org"
distfiles="http://download.gna.org/hedgewars/hedgewars-src-${version}.tar.bz2"
checksum=b699c8971ff420c3edd6533527ae2e99040f1e79207c9140826945bcf0e62192
nopie=yes
case "$XBPS_TARGET_MACHINE" in
*-musl) broken="see fpc" ;;
armv7hf*) broken="https://build.voidlinux.eu/builders/armv7l_builder/builds/5994/steps/shell_3/logs/stdio" ;;
esac
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" qt-host-tools qt-devel"
fi
post_install() {
vinstall ${DESTDIR}/usr/share/hedgewars/Data/misc/hedgewars.desktop 644 usr/share/applications
}
hedgewars-data_package() {
short_desc+=" - data files"
noarch=yes
pkg_install() {
vmove usr/share/hedgewars/Data
}
}