From ee5196b629d563e3fbb0654a0791c3a374bddc7f Mon Sep 17 00:00:00 2001 From: Duncaen Date: Tue, 16 May 2023 16:52:08 +0200 Subject: [PATCH] angband: update to 4.2.4. --- srcpkgs/angband/patches/fix-tests.patch | 11 +++++++++++ srcpkgs/angband/template | 14 +++----------- 2 files changed, 14 insertions(+), 11 deletions(-) create mode 100644 srcpkgs/angband/patches/fix-tests.patch diff --git a/srcpkgs/angband/patches/fix-tests.patch b/srcpkgs/angband/patches/fix-tests.patch new file mode 100644 index 00000000000..3abbca90d67 --- /dev/null +++ b/srcpkgs/angband/patches/fix-tests.patch @@ -0,0 +1,11 @@ +--- a/src/tests/test-utils.c ++++ b/src/tests/test-utils.c +@@ -30,7 +30,7 @@ + void set_file_paths(void) { + char configpath[512], libpath[512], datapath[512]; + +- my_strcpy(configpath, DEFAULT_CONFIG_PATH, sizeof(configpath)); ++ my_strcpy(configpath, "../../lib", sizeof(configpath)); + my_strcpy(libpath, DEFAULT_LIB_PATH, sizeof(libpath)); + my_strcpy(datapath, DEFAULT_DATA_PATH, sizeof(datapath)); + diff --git a/srcpkgs/angband/template b/srcpkgs/angband/template index 97db9b40a86..1a77dd88b6b 100644 --- a/srcpkgs/angband/template +++ b/srcpkgs/angband/template @@ -1,9 +1,10 @@ # Template file for 'angband' pkgname=angband -version=4.2.1 +version=4.2.4 revision=1 build_style=gnu-configure configure_args="--enable-sdl --enable-sdl-mixer" +make_check_target="tests" hostmakedepends="automake" makedepends="SDL_image-devel SDL_mixer-devel SDL_ttf-devel ncurses-devel" short_desc="Free, single-player dungeon exploration game" @@ -12,17 +13,8 @@ license="GPL-2.0-or-later" homepage="https://rephial.org/" changelog="https://rephial.org/release/" distfiles="https://github.com/angband/angband/archive/refs/tags/${version}.tar.gz" -checksum=acd735c9d46bf86ee14337c71c56f743ad13ec2a95d62e7115604621e7560d0f +checksum=8cf30b0f5c4d096e18a2896b81e5a8fa82215ebdcd3037502673fb70a6c30779 pre_configure() { NOCONFIGURE=1 ./autogen.sh } - -do_check() { - # XXX: Fix failing tests - rm -rf src/tests/{game,monster} - - sed -i '/graphics/d' src/tests/parse/suite.mk - - make tests -}