void-packages/srcpkgs/st-git/template

34 lines
899 B
Plaintext

# Template file for 'st-git'
pkgname=st-git
version=20140508
revision=1
build_style=gnu-makefile
provides="st-${version}_${revision}"
replaces="st>=0"
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"
do_fetch() {
local url="git://git.suckless.org/st"
msg_normal "Fetching source from $url ...\n"
git clone ${url} ${pkgname}-${version}
}
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
# We will use tic after install. See INSTALL.
sed -i 's|@tic -s st.info||g' Makefile
}
post_install() {
vinstall README 644 usr/share/doc/$pkgname
vinstall LICENSE 644 usr/share/licenses/$pkgname
}