void-packages/srcpkgs/st-git/template
2014-09-20 08:29:50 +00:00

35 lines
967 B
Text

# Template file for 'st-git'
pkgname=st-git
version=20140920
revision=1
build_style=gnu-makefile
provides="st-${version}_${revision}"
replaces="st>=0"
hostmakedepends="pkg-config git"
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
# Remove a warning
sed -i 's|-D_BSD_SOURCE|-D_DEFAULT_SOURCE|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/st
vinstall LICENSE 644 usr/share/licenses/st
}