void-packages/srcpkgs/st-git/template

34 lines
899 B
Plaintext
Raw Normal View History

2014-04-27 12:25:39 +02:00
# Template file for 'st-git'
pkgname=st-git
2014-05-01 11:26:36 +02:00
version=20140501
2014-04-27 12:32:39 +02:00
revision=2
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() {
vinstall README 644 usr/share/doc/$pkgname
vinstall LICENSE 644 usr/share/licenses/$pkgname
}