From ad7e4b2fd0096759f10c79cda9ef1d46a30eaa72 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 16 Sep 2020 17:23:19 -0700 Subject: st: Use update alternatives These files are also provided by ncurses so learn to co-habit Signed-off-by: Khem Raj --- meta-oe/recipes-graphics/suckless/st_0.8.4.bb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/meta-oe/recipes-graphics/suckless/st_0.8.4.bb b/meta-oe/recipes-graphics/suckless/st_0.8.4.bb index 906179501b..1f0f2f7f2c 100644 --- a/meta-oe/recipes-graphics/suckless/st_0.8.4.bb +++ b/meta-oe/recipes-graphics/suckless/st_0.8.4.bb @@ -23,3 +23,13 @@ do_install() { FILES_${PN} += " \ ${datadir}/terminfo \ " + +inherit update-alternatives + +ALTERNATIVE_PRIORITY = "50" + +ALTERNATIVE_${PN} = "st st-256color" + +ALTERNATIVE_LINK_NAME[st] = "${datadir}/terminfo/s/st" + +ALTERNATIVE_LINK_NAME[st-256color] = "${datadir}/terminfo/s/st-256color" -- cgit 1.2.3-korg