# Template file for 'ReDoomEd.app'
pkgname=ReDoomEd.app
version=0.92.1.b1
revision=1
build_wrksrc=ReDoomEd
build_style=gnu-makefile
make_use_env=yes
hostmakedepends="gnustep-make gcc-objc"
makedepends="gnustep-gui-devel gnustep-base-devel"
short_desc="GNUstep-based port of id Software’s Doom map editor for NeXTSTEP"
maintainer="Kira Patton <roundduckman@protonmail.com>"
# see LICENSE.txt and https://doomwiki.org/wiki/Data_Utility_License for more info about license,
# this is also why the package is considered restricted, due to fuzzy legality issues
license="AGPL-3.0-or-later, custom:id-DUL, custom:unknown"
homepage="http://twilightedge.com/mac/redoomed/"
distfiles="http://twilightedge.com/downloads/ReDoomEd.Sources.${version%.*}-${version##*.}.tar.gz"
checksum=256e4e63a6f109281673fd6fb1a11d3872aea6064ae8e104cd1238c9a7c21fa5
repository=nonfree
restricted=yes
make_build_args=OBJCFLAGS=-fcommon

if [ -e /usr/share/GNUstep/Makefiles/GNUstep.sh ]; then
	. /usr/share/GNUstep/Makefiles/GNUstep.sh
fi

post_install() {
	vinstall ReDoomEd.app/Resources/ReDoomEd.desktop 0755 /usr/share/applications/
	vlicense ../LICENSE.txt
}
