New package: st-git-20140427_1

This commit is contained in:
Ypnose 2014-04-27 12:25:39 +02:00
parent 4c4a8393fd
commit ea63870350
3 changed files with 46 additions and 0 deletions

5
srcpkgs/st-git/INSTALL Normal file
View file

@ -0,0 +1,5 @@
case "${ACTION}" in
post)
tic -s st.info
;;
esac

8
srcpkgs/st-git/REMOVE Normal file
View file

@ -0,0 +1,8 @@
case "${ACTION}" in
post)
rm /usr/share/terminfo/s/st
rm /usr/share/terminfo/s/st-meta
rm /usr/share/terminfo/s/st-meta-256color
rm /usr/share/terminfo/s/st-256color
;;
esac

33
srcpkgs/st-git/template Normal file
View file

@ -0,0 +1,33 @@
# Template file for 'st-git'
pkgname=st-git
version=20140427
revision=1
build_style=gnu-makefile
provides="st-${version}_${revision}"
replaces="st>=0"
hostmakedepends="pkg-config"
makedepends="fontconfig-devel libX11-devel libXft-devel"
depends="terminus-font 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
# 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
}