# Template file for 'chocolate-doom'
pkgname=chocolate-doom
version=3.1.1
revision=1
build_style=gnu-configure
hostmakedepends="autoconf automake pkg-config python3"
makedepends="SDL2-devel SDL2_mixer-devel SDL2_net-devel libsamplerate-devel libpng-devel"
short_desc="Doom source port that is minimalist and historically accurate"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://www.chocolate-doom.org/"
distfiles="https://github.com/chocolate-doom/chocolate-doom/archive/chocolate-doom-${version}.tar.gz"
checksum=1edcc41254bdc194beb0d33e267fae306556c4d24110a1d3d3f865717f25da23

CFLAGS="-fcommon"

pre_configure() {
	autoreconf -fi
}

post_build() {
	cd man/bash-completion
	for f in *.template; do
		cp "$f" "chocolate-${f%.template}"
	done
}
