From a35e5b038be29e02fc22298962202778224a5cea Mon Sep 17 00:00:00 2001 From: meator Date: Thu, 21 Jul 2022 21:33:12 +0200 Subject: [PATCH] mtm: generate terminfo when building This commit also removes build_style=gnu-makefile because do_build() and do_install() are defined anyway. --- srcpkgs/mtm/mtm-terminfo.INSTALL | 5 ----- srcpkgs/mtm/mtm-terminfo.REMOVE | 7 ------- srcpkgs/mtm/template | 9 ++++----- 3 files changed, 4 insertions(+), 17 deletions(-) delete mode 100644 srcpkgs/mtm/mtm-terminfo.INSTALL delete mode 100644 srcpkgs/mtm/mtm-terminfo.REMOVE diff --git a/srcpkgs/mtm/mtm-terminfo.INSTALL b/srcpkgs/mtm/mtm-terminfo.INSTALL deleted file mode 100644 index 4c2d03b145c..00000000000 --- a/srcpkgs/mtm/mtm-terminfo.INSTALL +++ /dev/null @@ -1,5 +0,0 @@ -case "${ACTION}" in -post) - tic -sx usr/share/terminfo/m/mtm.ti - ;; -esac diff --git a/srcpkgs/mtm/mtm-terminfo.REMOVE b/srcpkgs/mtm/mtm-terminfo.REMOVE deleted file mode 100644 index 767b67b2bee..00000000000 --- a/srcpkgs/mtm/mtm-terminfo.REMOVE +++ /dev/null @@ -1,7 +0,0 @@ -case "${ACTION}" in -pre) - rm usr/share/terminfo/m/mtm - rm usr/share/terminfo/m/mtm-256color - rm usr/share/terminfo/m/mtm-noutf - ;; -esac diff --git a/srcpkgs/mtm/template b/srcpkgs/mtm/template index a6cfd2c104c..599fa463410 100644 --- a/srcpkgs/mtm/template +++ b/srcpkgs/mtm/template @@ -1,10 +1,9 @@ # Template file for 'mtm' pkgname=mtm version=1.2.0 -revision=3 -build_style=gnu-makefile +revision=4 +hostmakedepends="ncurses" makedepends="ncurses-devel ncurses-libs" -depends="ncurses" short_desc="Micro Terminal Multiplexer" maintainer="travankor " license="GPL-3.0-or-later" @@ -18,13 +17,13 @@ do_build() { do_install() { vbin mtm - vinstall mtm.ti 644 usr/share/terminfo/m + mkdir -p ${DESTDIR}/usr/share/terminfo + tic -sx -o ${DESTDIR}/usr/share/terminfo mtm.ti vman mtm.1 } mtm-terminfo_package() { short_desc+=" - terminfo data" - depends="ncurses" pkg_install() { vmove usr/share/terminfo }