void-packages/srcpkgs/st/template

39 lines
952 B
Bash

# Template file for 'st'
pkgname=st
version=0.9.2
revision=1
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="meator <meator.dev@gmail.com>"
license="MIT"
homepage="https://st.suckless.org"
distfiles="https://dl.suckless.org/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=6b215d4f472b21d6232f30f221117a777e24bcfee68955ddefb7426467f9494b
pre_build() {
vsed -i config.def.h -e 's|Liberation Mono|Monospace|g'
[ -e ${FILESDIR}/config.h ] && cp ${FILESDIR}/config.h config.h
mkdir -p ${DESTDIR}/usr/share/terminfo
}
pre_install() {
export TERMINFO=${DESTDIR}/usr/share/terminfo
}
post_install() {
vdoc README
vdoc FAQ
vlicense LICENSE
}
st-terminfo_package() {
short_desc+=" - terminfo data"
pkg_install() {
vmove usr/share/terminfo
}
}