1 # Maintainer: mar77i <mysatyre at gmail dot com>
2 # Past Maintainer: Gaetan Bisson <bisson@archlinux.org>
3 # Contributor: Scytrin dai Kinthra <scytrin@gmail.com>
7 pkgver=20160309.3996461
9 pkgdesc='Simple virtual terminal emulator for X'
10 url='http://git.suckless.org/st/'
11 arch=('i686' 'x86_64')
15 makedepends=('ncurses' 'libxext' 'git')
16 # include config.h and any patches you want to have applied here
17 source=('git://git.suckless.org/st')
20 provides=("${_pkgname}")
21 conflicts=("${_pkgname}")
25 git log -1 --format='%cd.%h' --date=short | tr -d -
32 -e '/char font/s/= .*/= "Fixed:pixelsize=13:style=SemiCondensed";/' \
33 -e '/char worddelimiters/s/= .*/= " '"'"'`\\\"()[]{}<>|";/' \
34 -e '/int defaultcs/s/= .*/= 1;/' \
37 -e 's/CPPFLAGS =/CPPFLAGS +=/g' \
38 -e 's/CFLAGS =/CFLAGS +=/g' \
39 -e 's/LDFLAGS =/LDFLAGS +=/g' \
40 -e 's/_BSD_SOURCE/_DEFAULT_SOURCE/' \
41 -e 's/\(-lXft\)/\1 -lXrender/' \
43 sed '/@tic/d' -i Makefile
44 for file in "${source[@]}"; do
45 if [[ "$file" == "config.h" ]]; then
46 # add config.h if present in source array
47 # Note: this supersedes the above sed to config.def.h
49 elif [[ "$file" == *.diff || "$file" == *.patch ]]; then
50 # add all patches present in source array
51 patch -Np1 <"$srcdir/$(basename ${file})"
58 make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
63 make PREFIX=/usr DESTDIR="${pkgdir}" install
64 install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
65 install -Dm644 README "${pkgdir}/usr/share/doc/${pkgname}/README"