void-packages/srcpkgs/dwarffortress/template
2019-04-22 21:09:56 +02:00

31 lines
1,017 B
Bash

# Template file for 'dwarffortress'
pkgname=dwarffortress
version=0.44.12
revision=2
_urlver=${version#*.}
archs="x86_64"
create_wrksrc=yes
depends="gtk+ SDL SDL_ttf SDL_image libGL glu"
short_desc="Control a dwarven outpost in a randomly generated world"
maintainer="Robert Stancil <robert.stancil@mavs.uta.edu>"
license="custom: Proprietary"
homepage="http://www.bay12games.com/dwarves/"
distfiles="http://www.bay12games.com/dwarves/df_${_urlver//./_}_linux.tar.bz2"
checksum=5a2d15730d21b41a68da09ce3c3b70c3e2a6fd15b95c6cbfb68578ed2d2db979
nopie="distfiles are precompiled as PIE"
repository=nonfree
do_patch() {
vsed -i df_linux/df -e "s;./libs/Dwarf_Fortress;LD_PRELOAD=/usr/lib/libstdc++.so.6 ./libs/Dwarf_Fortress;"
}
do_install() {
vbin ${FILESDIR}/dwarffortress
vmkdir /usr/share/dwarffortress
vmkdir /usr/lib/dwarffortress/libs
vcopy "df_linux/libs/*" /usr/lib/dwarffortress/libs
rm -r df_linux/libs
vcopy "df_linux/*" /usr/share/dwarffortress/
vlicense "df_linux/readme.txt" dwarffortress.txt
}