@@ -161,6 +161,9 @@ _install_cfgs = "\
PKG_CONFIG_LIBDIR='${libdir}/pkgconfig' \
"
+TERMINFO_BASE = "alacritty ansi console dumb linux rxvt screen screen-256color sun \
+ tmux tmux-256color vt52 vt100 vt102 vt200 vt220 xterm-color xterm-xfree86 xterm-256color"
+
do_install() {
# Order of installation is important; widec installs a 'curses.h'
# header with more definitions and must be installed last hence.
@@ -182,7 +185,7 @@ do_install() {
# include some basic terminfo files
# stolen ;) from gentoo and modified a bit
- for x in alacritty ansi console dumb linux rxvt screen screen-256color sun tmux tmux-256color vt52 vt100 vt102 vt200 vt220 xterm-color xterm-xfree86 xterm-256color
+ for x in ${TERMINFO_BASE}
do
local termfile="$(find "${D}${datadir}/terminfo/" -name "${x}" 2>/dev/null)"
local basedir="$(basename $(dirname "${termfile}"))"
@@ -309,6 +312,7 @@ FILES:${PN}-terminfo = "\
FILES:${PN}-terminfo-base = "\
${sysconfdir}/terminfo \
+ ${@' '.join(map(lambda x: '${datadir}/terminfo/'+x[0]+'/'+x, '${TERMINFO_BASE}'.split()))} \
"
RSUGGESTS:${PN}-libtinfo = "${PN}-terminfo"