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:
parent
37251949d2
commit
150df65776
|
@ -1,6 +0,0 @@
|
||||||
case "$ACTION" in
|
|
||||||
post)
|
|
||||||
# Compile the terminfo description.
|
|
||||||
tic -s usr/share/terminfo/d/dvtm.info
|
|
||||||
;;
|
|
||||||
esac
|
|
|
@ -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
|
|
|
@ -1,9 +1,11 @@
|
||||||
# Template file for 'dvtm'
|
# Template file for 'dvtm'
|
||||||
pkgname=dvtm
|
pkgname=dvtm
|
||||||
version=0.15
|
version=0.15
|
||||||
revision=2
|
revision=3
|
||||||
|
build_style=gnu-makefile
|
||||||
|
make_use_env=yes
|
||||||
|
hostmakedepends="ncurses"
|
||||||
makedepends="ncurses-devel"
|
makedepends="ncurses-devel"
|
||||||
depends="ncurses" # needs tic at post-install
|
|
||||||
short_desc="Tiling window manager for the console"
|
short_desc="Tiling window manager for the console"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="MIT"
|
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"
|
distfiles="http://www.brain-dump.org/projects/dvtm/$pkgname-$version.tar.gz"
|
||||||
checksum=8f2015c05e2ad82f12ae4cf12b363d34f527a4bbc8c369667f239e4542e1e510
|
checksum=8f2015c05e2ad82f12ae4cf12b363d34f527a4bbc8c369667f239e4542e1e510
|
||||||
|
|
||||||
do_build() {
|
post_install() {
|
||||||
# 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
|
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
vinstall dvtm.info 644 usr/share/terminfo/d
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue