# Template file for 'wesnoth'
pkgname=wesnoth
version=1.18.5
revision=5
build_style=cmake
configure_args="-DENABLE_OMP=1"
hostmakedepends="pkg-config gettext"
makedepends="dbus-devel libgomp-devel fribidi-devel SDL2_image-devel
 SDL2_net-devel SDL2_ttf-devel SDL2_mixer-devel pango-devel libvorbis-devel
 zlib-devel bzip2-devel boost-devel-minimal libboost_iostreams
 libboost_program_options libboost_random libboost_locale libboost_filesystem
 libboost_coroutine openssl-devel SDL2-devel libcurl-devel"
depends="desktop-file-utils"
short_desc="Turn-based fantasy strategy game"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://wesnoth.org"
changelog="https://github.com/wesnoth/wesnoth/raw/master/changelog.md"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
checksum=e15db3caf446d91d389fc275f10c1a9e7ca3c6176c3b8ce94f5ee4a7a0c81bd6
replaces="wesnoth-data>=0"

CFLAGS="-UNDEBUG"
CXXFLAGS="-UNDEBUG"

post_install() {
	# runit service
	vsv wesnothd
}
