void-packages/srcpkgs/st/template

31 lines
946 B
Bash

# Template file for 'st'
pkgname=st
version=0.6
revision=2
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="85310c08c3814e099b5e45888f8ac7548640e69e9973e934d4fba38b03737a2b"
pre_build() {
sed -i 's|Liberation Mono|Terminus|g' config.def.h
sed -i 's|^CFLAGS +=|override CFLAGS +=|g' config.mk
sed -i 's|^LDFLAGS +=|override LDFLAGS +=|g' config.mk
sed -i 's| -I/usr/include||g' config.mk
sed -i 's| -L/usr/lib||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
}