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=20151011.f56c58a
9 pkgdesc='Simple virtual terminal emulator for X'
10 url='http://git.suckless.org/st/'
11 arch=('i686' 'x86_64' 'armv7h')
14 makedepends=('ncurses' 'libxext' 'git')
15 source=('git://git.suckless.org/st')
18 provides=("${_pkgname}")
19 conflicts=("${_pkgname}")
22 cd "${srcdir}/${_pkgname}"
23 git log -1 --format='%cd.%h' --date=short | tr -d -
28 cd "${srcdir}/${_pkgname}"
30 -e '/char font/s/= .*/= "Fixed:pixelsize=13:style=SemiCondensed";/' \
31 -e '/char worddelimiters/s/= .*/= " '"'"'`\\\"()[]{}<>|";/' \
32 -e '/int defaultcs/s/= .*/= 1;/' \
35 -e 's/CPPFLAGS =/CPPFLAGS +=/g' \
36 -e 's/CFLAGS =/CFLAGS +=/g' \
37 -e 's/LDFLAGS =/LDFLAGS +=/g' \
38 -e 's/_BSD_SOURCE/_DEFAULT_SOURCE/' \
40 sed '/@tic/d' -i Makefile
41 for file in "${source[@]}"; do
42 if [[ "$file" == "config.h" ]]; then
43 # add config.h if present in source array
44 # Note: this supersedes the above sed to config.def.h
47 elif [[ "$file" == *.diff ]]; then
48 # add all patches present in source array
49 patch -Np1 <"$srcdir/$file"
55 cd "${srcdir}/${_pkgname}"
56 make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
60 cd "${srcdir}/${_pkgname}"
61 make PREFIX=/usr DESTDIR="${pkgdir}" install
62 install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
63 install -Dm644 README "${pkgdir}/usr/share/doc/${pkgname}/README"