void-packages/srcpkgs/st-custom/template

41 lines
946 B
Bash

# Template file for 'st-custom'
pkgname=st-custom
version=2024.7.4
revision=1
build_style=gnu-makefile
make_use_env=compliant
hostmakedepends="pkg-config"
makedepends="fontconfig-devel libX11-devel libXft-devel imlib2-devel harfbuzz-devel"
depends="ncurses st-custom-terminfo-${version}_${revision}"
short_desc="Customized ST"
maintainer="Luca Bilke <luca@bil.ke>"
license="MIT"
homepage="https://git.snaile.de/snailed/st-custom"
distfiles="${homepage}/archive/${version}.tar.gz"
checksum=cab7eeeae08e8aadb1a429b752e4e3f0d5f9758ae4ce13e46937aef8b79eb0d7
replaces="st>=0"
provides="st-0.9.1_1"
pre_build() {
mkdir -p ${DESTDIR}/usr/share/terminfo
}
pre_install() {
export TERMINFO=${DESTDIR}/usr/share/terminfo
}
post_install() {
vdoc README
vdoc FAQ
vlicense LICENSE
}
st-custom-terminfo_package() {
short_desc+=" - terminfo data"
replaces="st-terminfo"
provides="st-terminfo-0.9.1_1"
pkg_install() {
vmove usr/share/terminfo
}
}