From 8ffbc01b34e581e396fb270db6340bd944ccbe4a Mon Sep 17 00:00:00 2001 From: Reed Wade Date: Sun, 14 Jun 2020 22:30:01 +0200 Subject: [PATCH] dwarffortress: fix checksum of the main exec Some community tools as Dwarf Therapist or DFhacks uses the main exec md5 to determine the dwarf fortress version. xbps-src lib strip step was changing this md5 causing impossibility for those tools to works. I also removed the libstdc++.so.6 lib cause it is a cleaner way than force preload the os one in the start script. --- srcpkgs/dwarffortress/template | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/srcpkgs/dwarffortress/template b/srcpkgs/dwarffortress/template index d7500b874cf..e406a3d57d6 100644 --- a/srcpkgs/dwarffortress/template +++ b/srcpkgs/dwarffortress/template @@ -1,7 +1,7 @@ # Template file for 'dwarffortress' pkgname=dwarffortress version=0.47.04 -revision=1 +revision=2 _urlver=${version#*.} archs="x86_64" create_wrksrc=yes @@ -13,11 +13,12 @@ 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 do_patch() { - vsed -i df_linux/df -e "s;./libs/Dwarf_Fortress;LD_PRELOAD=/usr/lib/libstdc++.so.6 ./libs/Dwarf_Fortress;" + rm df_linux/libs/libstdc++.so.6 } do_install() {