void-packages/srcpkgs/dwarffortress/template

34 lines
965 B
Bash

# Template file for 'dwarffortress'
pkgname=dwarffortress
version=0.47.05
revision=2
_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="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=ac74a6dbb7d7d9621f430405080322ab50c35f6632352ff2ea923f6dc5affca3
nostrip_files="Dwarf_Fortress"
nopie="distfiles are precompiled as PIE"
repository=nonfree
noshlibprovides=yes
post_extract() {
rm libs/libstdc++.so.6
rm libs/libgcc_s.so.1
}
do_install() {
vbin ${FILESDIR}/dwarffortress
vmkdir /usr/share/dwarffortress
vmkdir /usr/lib/dwarffortress/libs
vcopy "libs/*" /usr/lib/dwarffortress/libs
rm -r libs
vcopy "*" /usr/share/dwarffortress/
vlicense "readme.txt" dwarffortress.txt
}