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
3 changed files with 4 additions and 17 deletions
|
@ -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'
|
# Template file for 'mtm'
|
||||||
pkgname=mtm
|
pkgname=mtm
|
||||||
version=1.2.0
|
version=1.2.0
|
||||||
revision=3
|
revision=4
|
||||||
build_style=gnu-makefile
|
hostmakedepends="ncurses"
|
||||||
makedepends="ncurses-devel ncurses-libs"
|
makedepends="ncurses-devel ncurses-libs"
|
||||||
depends="ncurses"
|
|
||||||
short_desc="Micro Terminal Multiplexer"
|
short_desc="Micro Terminal Multiplexer"
|
||||||
maintainer="travankor <travankor@tuta.io>"
|
maintainer="travankor <travankor@tuta.io>"
|
||||||
license="GPL-3.0-or-later"
|
license="GPL-3.0-or-later"
|
||||||
|
@ -18,13 +17,13 @@ do_build() {
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vbin mtm
|
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
|
vman mtm.1
|
||||||
}
|
}
|
||||||
|
|
||||||
mtm-terminfo_package() {
|
mtm-terminfo_package() {
|
||||||
short_desc+=" - terminfo data"
|
short_desc+=" - terminfo data"
|
||||||
depends="ncurses"
|
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/share/terminfo
|
vmove usr/share/terminfo
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue