From 5ebacc29173d3584ca4e4afcee9a1d0ea3da5271 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Mon, 4 Aug 2025 13:32:23 +0700 Subject: [PATCH] nethack: build as if no col(1) is found Since col(1) is deprecated anyway. And the result is unchanged. --- srcpkgs/nethack/template | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/srcpkgs/nethack/template b/srcpkgs/nethack/template index dae3e204b60..659e8886c9a 100644 --- a/srcpkgs/nethack/template +++ b/srcpkgs/nethack/template @@ -1,7 +1,7 @@ # Template file for 'nethack' pkgname=nethack version=3.6.7 -revision=2 +revision=3 conf_files="/etc/nethack/sysconf" make_dirs="/var/games/nethack/save 0775 nethack nethack" hostmakedepends="flex groff" @@ -21,13 +21,9 @@ do_configure() { } do_build() { - local nocol - if ! command -v col >/dev/null; then - nocol=yes - fi make all dungeon \ CC="$CC" LINK="$CC" LFLAGS="$LDFLAGS" LEX=flex \ - "${nocol:+COLCMD=cat}" \ + COLCMD="sed 's/.\x08//g'" \ HACKDIR="/var/games/nethack" }