nethack: build as if no col(1) is found

Since col(1) is deprecated anyway. And the result is unchanged.
This commit is contained in:
Đoàn Trần Công Danh 2025-08-04 13:32:23 +07:00
parent 4406dd5fba
commit 5ebacc2917

View file

@ -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"
}