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:
parent
150df65776
commit
a35e5b038b
|
@ -1,5 +0,0 @@
|
|||
case "${ACTION}" in
|
||||
post)
|
||||
tic -sx usr/share/terminfo/m/mtm.ti
|
||||
;;
|
||||
esac
|
|
@ -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
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue