void-packages/srcpkgs/st-git/template

34 lines
899 B
Text
Raw Normal View History

2014-04-27 10:25:39 +00:00
# Template file for 'st-git'
pkgname=st-git
2014-05-31 10:03:26 +00:00
version=20140531
2014-05-08 09:24:03 +00:00
revision=1
2014-04-27 10:25:39 +00:00
build_style=gnu-makefile
provides="st-${version}_${revision}"
replaces="st>=0"
hostmakedepends="pkg-config"
2014-04-27 10:32:39 +00:00
makedepends="fontconfig-devel libX11-devel libXft-devel terminus-font"
depends="ncurses"
2014-04-27 10:25:39 +00:00
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
}