void-packages/srcpkgs/st/template

31 lines
911 B
Plaintext

# Template file for 'st'
pkgname=st
version=0.5
revision=4
build_style=gnu-makefile
hostmakedepends="pkg-config"
makedepends="fontconfig-devel libX11-devel libXft-devel terminus-font"
depends="ncurses"
short_desc="Simple terminal implementation for X"
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
license="MIT"
homepage="http://st.suckless.org"
distfiles="http://dl.suckless.org/$pkgname/$pkgname-$version.tar.gz"
checksum=ae80ddfaf8146f7665772efc9b85e05e08be5087682a689ecdf71aa4d4bfdd4e
pre_build() {
sed -i 's|Liberation Mono|Terminus|g' config.def.h
sed -i 's|-I/usr/include||g' config.mk
sed -i 's|-L/usr/lib||g' config.mk
# Remove BSD_SOURCE warning
sed -i 's|-D_BSD_SOURCE|-D_DEFAULT_SOURCE|g' config.mk
# We will use tic after install. See INSTALL.
sed -i 's|@tic -s st.info||g' Makefile
}
post_install() {
vinstall st.info 644 usr/share/terminfo/s st.terminfo
vdoc README
vlicense LICENSE
}