Package Details: nethack4 4.3.0.beta2-4

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: leahanderson
Last Packager: leahanderson
Votes: 10
Popularity: 0.000229
First Submitted: 2014-11-11 01:54 (UTC)
Last Updated: 2026-02-05 18:14 (UTC)

Latest Comments

1 2 Next › Last »

simona commented on 2026-02-05 18:47 (UTC)

mkdir -p ../../pkg/nethack4//usr/bin ../../pkg/nethack4//var/games/nethack4/data ../../pkg/nethack4//var/games/nethack4/save
install nethack/src/main ../../pkg/nethack4//usr/bin/nethack4
install -m 644 libnethack/dat/license ../../pkg/nethack4//var/games/nethack4/data/license
install -m 644 libnethack/dat/nhdat ../../pkg/nethack4//var/games/nethack4/data/nhdat
install -m 644 tilesets/dat/textascii.nh4ct ../../pkg/nethack4//var/games/nethack4/data/textascii.nh4ct
install -m 644 tilesets/dat/textunicode.nh4ct ../../pkg/nethack4//var/games/nethack4/data/textunicode.nh4ct
chmod: impossibile accedere a '/var/games/nethack4/save': File o directory non esistente

leahanderson commented on 2026-02-05 16:38 (UTC)

i tried to get this to build, but i have no idea what i'm doing in perl and searching the problem up did not help in the slightest

simona commented on 2025-02-26 15:18 (UTC)


Could not load global config file: Max. recursion depth with nested structures exceeded at /usr/lib/perl5/5.40/core_perl/Storable.pm line 335, <DATA> line 1, at ../aimake line 6553.
at ../aimake line 6572.
main::__ANON__("Could not load global config file: Max. recursion depth with "...) called at ../aimake line 8276

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.

<deleted-account> commented on 2019-03-24 13:27 (UTC)

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.