]> git.immae.eu Git - perso/Immae/Config/AUR.git/blame - PKGBUILD
remove terminfo installation, update maintainer
[perso/Immae/Config/AUR.git] / PKGBUILD
CommitLineData
19096d14 1# Maintainer: mar77i <mysatyre at gmail dot com>
2# Past Maintainer: Gaetan Bisson <bisson@archlinux.org>
d24ea821
GB
3# Contributor: Scytrin dai Kinthra <scytrin@gmail.com>
4
5pkgname=st-git
6_pkgname=st
19096d14 7pkgver=20151011.f56c58a
d24ea821
GB
8pkgrel=1
9pkgdesc='Simple virtual terminal emulator for X'
10url='http://git.suckless.org/st/'
11arch=('i686' 'x86_64' 'armv7h')
12license=('MIT')
13depends=('libxft')
14makedepends=('ncurses' 'libxext' 'git')
70b10beb 15source=('git://git.suckless.org/st')
16sha1sums=('SKIP')
d24ea821
GB
17
18provides=("${_pkgname}")
19conflicts=("${_pkgname}")
20
21pkgver() {
22 cd "${srcdir}/${_pkgname}"
23 git log -1 --format='%cd.%h' --date=short | tr -d -
24}
25
26prepare() {
0df21d83 27 local file
d24ea821 28 cd "${srcdir}/${_pkgname}"
d24ea821
GB
29 sed \
30 -e '/char font/s/= .*/= "Fixed:pixelsize=13:style=SemiCondensed";/' \
31 -e '/char worddelimiters/s/= .*/= " '"'"'`\\\"()[]{}<>|";/' \
32 -e '/int defaultcs/s/= .*/= 1;/' \
33 -i config.def.h
27aad93a 34 sed \
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/' \
39 -i config.mk
7f2c13ce 40 sed '/@tic/d' -i Makefile
0df21d83 41 for file in "${source[@]}"; do
42 if [[ "$file" != *.diff ]]; then
c5b97b9a 43 # add config.h if present in source array
44 # Note: this supersedes the above sed to config.def.h
45 [[ "$file" == "config.h" ]] && cp "$SRCDEST/$file" .
0df21d83 46 continue
47 fi
48 # add all patches present in source array
49 patch -Np1 <"$SRCDEST/$file"
50 done
d24ea821
GB
51}
52
53build() {
54 cd "${srcdir}/${_pkgname}"
55 make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
56}
57
58package() {
59 cd "${srcdir}/${_pkgname}"
d24ea821
GB
60 make PREFIX=/usr DESTDIR="${pkgdir}" install
61 install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
62 install -Dm644 README "${pkgdir}/usr/share/doc/${pkgname}/README"
63}