mtm: generate terminfo when building

This commit also removes build_style=gnu-makefile because do_build() and
do_install() are defined anyway.
This commit is contained in:
meator 2022-07-21 21:33:12 +02:00 committed by classabbyamp
parent 150df65776
commit a35e5b038b
3 changed files with 4 additions and 17 deletions

View File

@ -1,5 +0,0 @@
case "${ACTION}" in
post)
tic -sx usr/share/terminfo/m/mtm.ti
;;
esac

View File

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

View File

@ -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 <travankor@tuta.io>"
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
}