st: update to 0.5

This commit is contained in:
Ypnose 2014-04-27 12:13:34 +02:00
parent 8eb57f1a1c
commit 4c4a8393fd
3 changed files with 31 additions and 12 deletions

5
srcpkgs/st/INSTALL Normal file
View file

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

8
srcpkgs/st/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

View file

@ -1,22 +1,28 @@
# Template file for 'st'
pkgname=st
version=0.4
version=0.5
revision=1
makedepends="pkg-config libX11-devel libXinerama-devel libXft-devel terminus-font"
depends="terminus-font"
short_desc="simple terminal implementation for X"
maintainer="pancake <pancake@nopcode.org>"
replaces="st>=0"
build_style=gnu-makefile
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"
distfiles="http://dl.suckless.org/$pkgname/$pkgname-$version.tar.gz"
checksum=307aef01d0de0411439bf32d55c23a930e779efd003a31acaa0ddcf8b45a3afe
checksum=ae80ddfaf8146f7665772efc9b85e05e08be5087682a689ecdf71aa4d4bfdd4e
do_build() {
sed -e 's,Liberation Mono,Terminus,' config.def.h > config.h
make
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
}
do_install() {
vinstall st 755 usr/bin
vinstall st.1 644 usr/share/man/man1
post_install() {
vinstall README 644 usr/share/doc/$pkgname
vinstall LICENSE 644 usr/share/licenses/$pkgname
}