43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
# Template file for 'st' git version
|
|
pkgname=st-git
|
|
version=0.8.4
|
|
revision=4
|
|
wrksrc="st"
|
|
build_style=gnu-makefile
|
|
hostmakedepends="git pkg-config"
|
|
makedepends="fontconfig-devel libX11-devel libXft-devel"
|
|
depends="ncurses st-terminfo_git-${version}_${revision}"
|
|
short_desc="Simple terminal implementation for X"
|
|
maintainer="Tuxliban Torvalds <tenshalito@gmail.com>"
|
|
license="MIT"
|
|
homepage="https://st.suckless.org"
|
|
|
|
# Obtener versión más reciente en upstream
|
|
do_fetch(){
|
|
git clone https://git.suckless.org/st ${wrksrc} --depth 1
|
|
cd ${wrksrc}
|
|
git checkout master
|
|
}
|
|
|
|
pre_build() {
|
|
sed -i 's|Liberation Mono|Monospace|g' config.def.h
|
|
# Si existe una configuración custom del usuario se usará
|
|
[ -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_git_package() {
|
|
short_desc+=" - terminfo data"
|
|
depends="ncurses"
|
|
pkg_install() {
|
|
vmove usr/share/terminfo
|
|
}
|
|
}
|