void-packages/srcpkgs/st-git/template

34 lines
887 B
Plaintext
Raw Normal View History

2014-04-27 12:25:39 +02:00
# Template file for 'st-git'
pkgname=st-git
2014-07-05 18:47:10 +02:00
version=20140705
2014-05-08 11:24:03 +02:00
revision=1
2014-04-27 12:25:39 +02:00
build_style=gnu-makefile
provides="st-${version}_${revision}"
replaces="st>=0"
hostmakedepends="pkg-config"
2014-04-27 12:32:39 +02:00
makedepends="fontconfig-devel libX11-devel libXft-devel terminus-font"
depends="ncurses"
2014-04-27 12:25:39 +02: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() {
2014-07-05 18:47:10 +02:00
vinstall README 644 usr/share/doc/st
vinstall LICENSE 644 usr/share/licenses/st
2014-04-27 12:25:39 +02:00
}