# Template file for 'dwarffortress'
#
# MUST BE PINNED TO THE NEWEST DF RELEASE "Dwarf-Therapist" SUPPORTS

pkgname=dwarffortress
version=53.02
revision=1
_urlver=${version//./_}
archs="x86_64"
depends="gtk+ SDL SDL_ttf SDL_image virtual?libGL glu"
short_desc="Control a dwarven outpost in a randomly generated world"
maintainer="Rutpiv <roger_freitas@live.com>"
license="custom:Proprietary"
homepage="https://www.bay12games.com/dwarves/"
distfiles="https://www.bay12games.com/dwarves/df_${_urlver}_linux.tar.bz2"
checksum=81e0e27dfdfc43df5f5d5636162e6f60a081d093dab791d2199b05692914f6bc
nopie="distfiles are precompiled as PIE"
repository=nonfree
noshlibprovides=yes
nostrip=yes

do_install() {
	vmkdir /opt/dwarffortress
	vcopy "*" /opt/dwarffortress
	chmod 755 "${DESTDIR}"/opt/dwarffortress/{dwarfort,run_df,*.so*}

	vbin ${FILESDIR}/dwarffortress
	vlicense readme.txt dwarffortress.txt
}
