Package Details: nethack4 4.3.0.beta2-2

Git Clone URL: https://aur.archlinux.org/nethack4.git (read-only, click to copy)
Package Base: nethack4
Description: A modern fork of Nethack
Upstream URL: http://nethack4.org/
Licenses: custom
Submitter: keenerd
Maintainer: keenerd
Last Packager: keenerd
Votes: 9
Popularity: 0.000000
First Submitted: 2014-11-11 01:54 (UTC)
Last Updated: 2016-10-14 17:00 (UTC)

Dependencies (7)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

fenuks commented on 2019-06-06 20:08 (UTC)

Hacked for a while on the PKGBUILD, and managed to get working version with vastly simplified build file (no binary patching required).

# Maintainer: Kyle Keen <keenerd@gmail.com>

pkgname=nethack4
pkgver=4.3.0.beta2
_pkgver=4.3-beta2
pkgrel=2
pkgdesc="A modern fork of Nethack"
arch=('i686' 'x86_64')
url="http://nethack4.org/"
license=('custom')
depends=('jansson' 'gcc-libs')
makedepends=('sdl2' 'libpng' 'chrpath')
optdepends=('sdl2: tiles'
            'libpng: tiles')
#source=('git+https://gitorious.org/nitrohack/ais523.git#branch=nicehack')
source=("http://nethack4.org/media/releases/nethack4-$_pkgver.tar.gz")
md5sums=('737403ba07a18fe3030a153471ba223d')

# postgresql-libs: multiuser server

package() {
  cd "$srcdir/$pkgname-$_pkgver"

  # allow aimake to run as "root"  (fakeroot confuses it)
  sed -i "s/\$os_parsed ne 'MSWin32'/0/" aimake
  # disable check for modified files (refuses to build)
  sed -i "s/\$objtype eq 'path'/0/" aimake

  mkdir -p build && cd build
  msg "Building console version"
  ../aimake --without=jansson --without=gui --without=server --install /usr --destdir "$pkgdir" --override-directory gamesbindir='/usr/bin'

  msg "Building SDL version"
  ../aimake --without=jansson --with=gui --without=server --install /usr --destdir "$pkgdir" --override-directory gamesbindir='/usr/bin'
}

fenuks commented on 2019-06-06 18:44 (UTC)

@terminalnode @keenerd Error with saving logfile is caused by improper configuration. strace shows that game tries to save in my case in "/home/fenuks/.cache/yay/nethack4/src/nethack4-4.3-beta2/opt00000000000000000000/save/logfile", or in other words, in build directory.

terminalnode commented on 2019-03-24 13:27 (UTC) (edited on 2019-03-24 13:27 (UTC) by terminalnode)

Every game after I die I get a message saying the save file is corrupted, and that if I want to report this error at trac.nethack4.org I should include the following information:

Error: Failed to write logfile. Is it writable?

Location: libnethack/srs/topten.c:335

Game ID: <character name>_<some number>

Is this an error with the package or should it be reported to nethack4.org? It does happen consistently every game. I'm not sure where the path libnethack is supposed to be located, only that the actual save files are located in ~/.config/NetHack4/<some_number>_<character name>.nhgame (note that it's inverse to the game id, perhaps that's relevant?)

keenerd commented on 2018-09-23 12:06 (UTC)

Builds fine. User fails to share meaningful error messages?

nanohard commented on 2018-09-22 18:20 (UTC)

Fails to build

khau commented on 2016-10-17 21:26 (UTC)

I'm still getting trouble saving (corrupted saves) - I can't quite figure out what is going wrong there, though.

keenerd commented on 2016-10-14 17:02 (UTC)

Should be fixed now, for very hacky values of fixed. There might be a legit way of solving the paths issue with aimake, but I could not find one.

khau commented on 2016-10-14 07:28 (UTC) (edited on 2016-10-14 07:33 (UTC) by khau)

I'm getting repeated errors when trying to run the game: Warning: could not open tileset file '/home/user/.config/NetHack4/tilesets/textunicode.nh4ct' or '/home/user/.cache/pacaur/nethack4/src/nethack-4.4.3-beta2/opt/data/textuniode.nh4ct' The relevent file exists in /usr/share/nethack4 but it seems that for some reason, the game is searching in the wrong directories. EDIT: Related problems persists in other areas of the game as well (it cannot find the nhdat, cannot create save file at the moment).

keenerd commented on 2015-09-06 08:42 (UTC)

No build errors with beta2.

irb commented on 2015-07-30 18:30 (UTC)

Compilation error here too: Building from libuncursed/src/plugins/sdl.c/sdl.c (rule compile_c) produced warnings, with the following command line: /usr/bin/gcc -c -g -O2 -fno-common -Wall -fvisibility=hidden -fdiagnostics-show-option -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -Wno-sign-compare -Wold-style-definition -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -D_REENTRANT -D_XOPEN_SOURCE=700 --std=c11 -DNETCLIENT -fPIC -o libuncursed/src/plugins/sdl.c/sdl.o -include aimake/aimake_1.h -I libuncursed/include/uncursed.h -I libuncursed/include/uncursed_hooks.h -I libuncursed/include/uncursed_sdl.h libuncursed/src/plugins/sdl.c/sdl.c /var/cache/pacman/pkg/nethack420297/nethack4/src/libuncursed/src/plugins/sdl.c: In function ‘load_png_file_to_texture’: /var/cache/pacman/pkg/nethack420297/nethack4/src/libuncursed/src/plugins/sdl.c:125:18: warning: variable ‘rv’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered] SDL_Texture *rv = NULL; ^