void-packages/srcpkgs/st/template
meator a64f7becd2 st: add ncurses to st-terminfo dependencies + fix
st-terminfo.INSTALL uses tic to compile terminfo entries, but there's no
guarantee that tic is actually installed. This commit adds ncurses (the
provider of tic) to the dependencies of st-terminfo. It also adds
missing terminfo entries to st-terminfo.REMOVE and replaces sed with
vsed.
2021-10-02 16:48:34 -03:00

36 lines
985 B
Bash

# Template file for 'st'
pkgname=st
version=0.8.4
revision=3
build_style=gnu-makefile
make_use_env=compliant
hostmakedepends="pkg-config"
makedepends="fontconfig-devel libX11-devel libXft-devel"
depends="ncurses st-terminfo-${version}_${revision}"
short_desc="Simple terminal implementation for X"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://st.suckless.org"
distfiles="https://dl.suckless.org/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=d42d3ceceb4d6a65e32e90a5336e3d446db612c3fbd9ebc1780bc6c9a03346a6
pre_build() {
sed -i 's|Liberation Mono|Monospace|g' config.def.h
[ -e ${FILESDIR}/config.h ] && cp ${FILESDIR}/config.h config.h
# We will use tic after install. See INSTALL.
vsed -i Makefile -e '/tic/d'
}
post_install() {
vinstall st.info 644 usr/share/terminfo/s st.terminfo
vdoc README
vlicense LICENSE
}
st-terminfo_package() {
short_desc+=" - terminfo data"
depends="ncurses"
pkg_install() {
vmove usr/share/terminfo
}
}