dvtm: generate terminfo when building & simplify

Generating terminfo in INSTALL is unnecessary and leaves .info file in
/usr/share/terminfo which can confuse some programs.

Dvtm now also uses proper build_style=gnu_makefile instead of calling
make explicitly.
This commit is contained in:
meator 2022-07-21 10:56:03 +02:00 committed by classabbyamp
parent 37251949d2
commit 150df65776
3 changed files with 5 additions and 23 deletions

View File

@ -1,6 +0,0 @@
case "$ACTION" in
post)
# Compile the terminfo description.
tic -s usr/share/terminfo/d/dvtm.info
;;
esac

View File

@ -1,7 +0,0 @@
case "$ACTION" in
pre)
# Remove compiled terminfo files.
rm -f usr/share/terminfo/d/dvtm-256color
rm -f usr/share/terminfo/d/dvtm
;;
esac

View File

@ -1,9 +1,11 @@
# Template file for 'dvtm'
pkgname=dvtm
version=0.15
revision=2
revision=3
build_style=gnu-makefile
make_use_env=yes
hostmakedepends="ncurses"
makedepends="ncurses-devel"
depends="ncurses" # needs tic at post-install
short_desc="Tiling window manager for the console"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
@ -11,13 +13,6 @@ homepage="http://www.brain-dump.org/projects/dvtm/"
distfiles="http://www.brain-dump.org/projects/dvtm/$pkgname-$version.tar.gz"
checksum=8f2015c05e2ad82f12ae4cf12b363d34f527a4bbc8c369667f239e4542e1e510
do_build() {
# Do not run tic, useless in build environment.
sed -i 's,tic,/bin/true,g' Makefile
make CC=$CC V=1
}
do_install() {
make PREFIX=/usr DESTDIR=${DESTDIR} install
post_install() {
vlicense LICENSE
vinstall dvtm.info 644 usr/share/terminfo/d
}