void-packages/srcpkgs/dwarffortress/template
2021-03-19 11:06:44 -03:00

33 lines
1,001 B
Bash

# Template file for 'dwarffortress'
pkgname=dwarffortress
version=0.47.05
revision=1
_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=ac74a6dbb7d7d9621f430405080322ab50c35f6632352ff2ea923f6dc5affca3
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
}