New package: st-git-20140427_1
This commit is contained in:
parent
4c4a8393fd
commit
ea63870350
3 changed files with 46 additions and 0 deletions
5
srcpkgs/st-git/INSTALL
Normal file
5
srcpkgs/st-git/INSTALL
Normal file
|
@ -0,0 +1,5 @@
|
|||
case "${ACTION}" in
|
||||
post)
|
||||
tic -s st.info
|
||||
;;
|
||||
esac
|
8
srcpkgs/st-git/REMOVE
Normal file
8
srcpkgs/st-git/REMOVE
Normal 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
33
srcpkgs/st-git/template
Normal 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
|
||||
}
|
Loading…
Reference in a new issue