st.paketlendi

This commit is contained in:
milisarge 2017-04-17 03:46:21 +03:00
parent 2ba6380911
commit e644dc6ce7
1 changed files with 16 additions and 4 deletions

View File

@ -10,8 +10,20 @@ release=1
source=(http://dl.suckless.org/st/$name-$version.tar.gz) source=(http://dl.suckless.org/st/$name-$version.tar.gz)
build(){ build(){
cd $name-$version cd $name-$version
make X11INC=/usr/include/ X11LIB=/usr/lib/ local file
make PREFIX=/usr DESTDIR=$PKG TERMINFO=$PKG/usr/share/terminfo install sed \
rm $PKG/usr/share/terminfo/s/st{,-256color} -e '/char font/s/= .*/= "Fixed:pixelsize=17:style=Condensed";/' \
-e '/char worddelimiters/s/= .*/= " '"'"'`\\\"()[]{}<>|";/' \
-e '/int defaultcs/s/= .*/= 1;/' \
-i config.def.h
sed \
-e 's/CPPFLAGS =/CPPFLAGS +=/g' \
-e 's/CFLAGS =/CFLAGS +=/g' \
-e 's/LDFLAGS =/LDFLAGS +=/g' \
-e 's/_BSD_SOURCE/_DEFAULT_SOURCE/' \
-i config.mk
sed '/@tic/d' -i Makefile
make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
make PREFIX=/usr DESTDIR="${PKG}" install
} }