void-packages/srcpkgs/st/template

31 lines
911 B
Text
Raw Normal View History

2013-04-05 16:13:15 +00:00
# Template file for 'st'
pkgname=st
2014-04-27 10:13:34 +00:00
version=0.5
revision=4
2014-04-27 10:13:34 +00:00
build_style=gnu-makefile
hostmakedepends="pkg-config"
2014-04-27 10:32:25 +00:00
makedepends="fontconfig-devel libX11-devel libXft-devel terminus-font"
depends="ncurses"
2014-04-27 10:13:34 +00:00
short_desc="Simple terminal implementation for X"
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
2013-04-05 16:13:15 +00:00
license="MIT"
homepage="http://st.suckless.org"
distfiles="http://dl.suckless.org/$pkgname/$pkgname-$version.tar.gz"
2014-04-27 10:13:34 +00:00
checksum=ae80ddfaf8146f7665772efc9b85e05e08be5087682a689ecdf71aa4d4bfdd4e
2013-04-05 16:13:15 +00:00
2014-04-27 10:13:34 +00:00
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
2014-09-20 08:29:12 +00:00
# Remove BSD_SOURCE warning
sed -i 's|-D_BSD_SOURCE|-D_DEFAULT_SOURCE|g' config.mk
2014-04-27 10:13:34 +00:00
# We will use tic after install. See INSTALL.
sed -i 's|@tic -s st.info||g' Makefile
2013-04-05 16:13:15 +00:00
}
2014-04-27 10:13:34 +00:00
post_install() {
vinstall st.info 644 usr/share/terminfo/s st.terminfo
vdoc README
vlicense LICENSE
2013-04-05 16:13:15 +00:00
}