void-packages/srcpkgs/dwarffortress/template
2020-06-27 19:23:59 +02:00

33 lines
1,001 B
Bash

# Template file for 'dwarffortress'
pkgname=dwarffortress
version=0.47.04
revision=3
_urlver=${version#*.}
archs="x86_64"
create_wrksrc=yes
depends="gtk+ SDL SDL_ttf SDL_image virtual?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=1de5872bf3ac32906a0082129ec88d6879b6ac7059a3513607d628090b1328e6
nostrip_files="Dwarf_Fortress"
nopie="distfiles are precompiled as PIE"
repository=nonfree
noshlibprovides=yes
do_patch() {
rm df_linux/libs/libstdc++.so.6
}
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
}