mtm: update to 1.2.0.

Correctly install terminfo into subpackage.
This commit is contained in:
travankor 2019-10-29 23:54:38 -07:00 committed by Piraty
parent 3d19046073
commit 87a558cce6
4 changed files with 25 additions and 4 deletions

1
srcpkgs/mtm-terminfo Symbolic link
View File

@ -0,0 +1 @@
mtm/

View File

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

View File

@ -0,0 +1,7 @@
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,23 +1,31 @@
# Template file for 'mtm'
pkgname=mtm
version=1.1.0
version=1.2.0
revision=1
build_style=gnu-makefile
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"
homepage="https://github.com/deadpixi/mtm"
distfiles="https://github.com/deadpixi/mtm/archive/${version}.tar.gz"
checksum=3f3e723466f3bb88afb7a49b66a790f3aaf6786654e8f1f056edc09fa99abd85
checksum=68f753f743fcd3d87f269011d4bbd3fed59cfcad710d7c7db98844e3e675c196
do_build() {
make HEADERS='-DNCURSESW_INCLUDE_H="<ncurses.h>"'
}
do_install() {
make install-terminfo
vbin mtm
vinstall mtm.ti 644 usr/share/terminfo/m
vman mtm.1
}
mtm-terminfo_package() {
short_desc+=" - terminfo data"
archs=noarch
pkg_install() {
vmove usr/share/terminfo
}
}