hedgewars: update to 1.0.0

This commit is contained in:
Anachron 2019-10-11 11:50:08 +02:00 committed by Helmut Pozimski
parent ba0d9e7427
commit 740b148aad

View file

@ -1,6 +1,6 @@
# Template file for 'hedgewars'
pkgname=hedgewars
version=0.9.25
version=1.0.0
revision=1
wrksrc="${pkgname}-src-${version}"
build_style=cmake
@ -15,7 +15,7 @@ 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
checksum=211634e61f2e4beecc3c98c6f749601fcd08321fda1ba969b3b3832a004f155b
nopie_files="/usr/bin/hwengine"
nocross="Needs investigation: fails to link hwengine"
@ -25,12 +25,23 @@ fi
case $XBPS_TARGET_MACHINE in
# forces usage of C engine and ghc due to a 32 bit freepascal bug
# https://travis-ci.org/void-linux/void-packages/jobs/596458977#L4316
i686*)
hostmakedepends+=" glew-devel ghc"
hostmakedepends+=" glew-devel ghc libatomic-devel"
nopie_files+=" /usr/bin/hedgewars"
;;
esac
pre_configure() {
# remove option not supported by clang
case $XBPS_TARGET_MACHINE in
i686*)
CFLAGS=${CFLAGS/-fstack-clash-protection/}
CXXFLAGS=${CXXFLAGS/-fstack-clash-protection/}
;;
esac
}
post_install() {
vinstall ${DESTDIR}/usr/share/hedgewars/Data/misc/hedgewars.desktop 644 usr/share/applications
}