37 lines
1.2 KiB
Bash
37 lines
1.2 KiB
Bash
# Template file for 'hedgewars'
|
|
pkgname=hedgewars
|
|
version=0.9.23
|
|
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 qt-qmake qt-host-tools"
|
|
makedepends="qt-devel SDL2_net-devel SDL2_mixer-devel SDL2_image-devel SDL2_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://www.hedgewars.org/"
|
|
distfiles="https://hedgewars.org/download/releases/hedgewars-src-${version}.tar.bz2"
|
|
checksum=da2e4908042be56d1c0f3cb80a355bde7f0a49f675b050a03228cc3fb22aae89
|
|
nopie_files="/usr/bin/hwengine"
|
|
nocross="Needs investigation: fails to link hwengine"
|
|
|
|
if [ -n "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" 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
|
|
}
|
|
}
|