void-packages/srcpkgs/hedgewars/template
2019-03-01 12:04:45 -03:00

44 lines
1.4 KiB
Bash

# Template file for 'hedgewars'
pkgname=hedgewars
version=0.9.25
revision=1
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"
makedepends="ffmpeg-devel lua51-devel physfs-devel qt5-tools-devel SDL2_image-devel
SDL2_mixer-devel SDL2_net-devel SDL2_ttf-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.0-only"
homepage="https://www.hedgewars.org/"
distfiles="https://hedgewars.org/download/releases/hedgewars-src-${version}.tar.bz2"
checksum=07dc527dbc90dddea894f518aadd67aa2eebb19738739a7c1bd7fd1e608e1c6e
nopie_files="/usr/bin/hwengine"
nocross="Needs investigation: fails to link hwengine"
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-devel"
fi
case $XBPS_TARGET_MACHINE in
# forces usage of C engine and ghc due to a 32 bit freepascal bug
i686*)
hostmakedepends+=" glew-devel ghc"
nopie_files+=" /usr/bin/hedgewars"
;;
esac
post_install() {
vinstall ${DESTDIR}/usr/share/hedgewars/Data/misc/hedgewars.desktop 644 usr/share/applications
}
hedgewars-data_package() {
short_desc+=" - data files"
archs=noarch
pkg_install() {
vmove usr/share/hedgewars/Data
}
}