MarkusVolk 2a3f1b2233 foot: add hack to build terminfo
I didn't manage to build foot terminfo with ncurses-native. Since the last
foot update, TERM=foot has been set as the default. That makes the problem
urgent, because now there are no more ncurses applications running in the
terminal. Add a hack to the recipe instead of hiding the problem by setting
TERM=xterm inside the image again. Hosts 'tic' can create terminfo. Make use
of it. You need to install ncurses-bin on your build machine.
2021-09-07 08:56:10 +02:00

55 lines
1.3 KiB
BlitzBasic

SUMMARY = "A fast, lightweight and minimalistic Wayland terminal emulator."
HOMEPAGE = "https://codeberg.org/dnkl/foot"
BUGTRACKER = "https://codeberg.org/dnkl/foot/issues"
SECTION = "base/shell"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3a7351a597a91e763901f7c76f21e798"
REQUIRED_DISTRO_FEATURES = "wayland"
DEPENDS = " \
fcft \
fontconfig \
freetype \
libxkbcommon \
pixman \
wayland \
wayland-native \
"
RRECOMMENDS:${PN} = "xdg-utils"
SRC_URI = " \
git://codeberg.org/dnkl/foot.git;protocol=https \
"
S = "${WORKDIR}/git"
PV = "1.9.0"
SRCREV = "${PV}"
PACKAGECONFIG[terminfo] = "-Dterminfo=enabled,-Dterminfo=disabled,ncurses-native"
PACKAGECONFIG[grapheme-clustering] = "-Dgrapheme-clustering=enabled,-Dgrapheme-clustering=disabled,utf8proc"
PACKAGECONFIG[docs] = "-Ddocs=enabled,-Ddocs=disabled,scdoc-native"
PACKAGECONFIG ?= " \
grapheme-clustering \
"
# Hack! tic from ncurses-native fails to generate the terminfo files. Use hosts tic instead.
# ncurses-bin needs to be installed.
do_install:append() {
install -d ${D}${datadir}/foot/terminfo
/usr/bin/tic -o ${D}${datadir}/foot/terminfo -x -e foot,foot-direct ${S}/foot.info
}
inherit meson pkgconfig features_check
FILES:${PN} = " \
${bindir} \
${datadir} \
"
BBCLASSEXTEND = ""