# Template file for 'cdogs-sdl'
pkgname=cdogs-sdl
version=0.9.1
revision=2
build_style=cmake
configure_args="-DCDOGS_DATA_DIR=/usr/share/cdogs/"
hostmakedepends="pkg-config python3-protobuf protobuf26"
makedepends="SDL2-devel SDL2_mixer-devel SDL2_image-devel SDL2_net-devel
 gtk+3-devel protobuf-devel"
short_desc="Classic overhead run-and-gun game"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://cxong.github.io/cdogs-sdl/"
distfiles="https://github.com/cxong/cdogs-sdl/archive/${version}.tar.gz"
checksum=fee87e90371e6c8f679e75a3628d82b863a67250bd822c672a4017f6a078eb56
replaces="cdogs-sdl-data<=0.7.3"

CFLAGS="-fcommon"

pre_configure() {
	vsed -i CMakeLists.txt -e "s; -Werror;;"
}
