SRCBUILD - lsd-packages - LSD Linux packages
(HTM) git clone git://r-36.net/lsd-packages
(DIR) Log
(DIR) Files
(DIR) Refs
---
SRCBUILD (907B)
---
1 # Maintainer: Christoph Lohmann <20h@r-36.net>
2 #
3 # http://www.zsh.org
4 #
5
6 version=5.0.5
7 description="sh-compatible with features from ksh and csh"
8 depends=('glibc', 'ncurses', 'readline', 'pcre', 'libcap', 'gdbm')
9 sources=("http://www.zsh.org/pub/zsh-$version.tar.bz2"
10 "zsh-xattr-fix.patch")
11
12 src_compile() {
13 cd "$SOURCE_DIR/zsh-$version"
14
15 # patching xattr redefinition. I think the problem is somewhere else.
16 patch -Np1 -i "$SOURCE_DIR/zsh-xattr-fix.patch"
17
18 ./configure --prefix=/usr \
19 --docdir=/usr/share/doc/zsh \
20 --htmldir=/usr/share/doc/zsh/html \
21 --with-term-lib='ncursesw' \
22 --enable-multibyte \
23 --enable-function-subdirs \
24 --with-tcsetpgrp \
25 --enable-pcre \
26 --enable-cap \
27 --enable-zsh-secure-free
28 make
29 }
30
31 src_check() {
32 cd "$SOURCE_DIR/zsh-$version"
33
34 HOME="$SOURCE_DIR" make check
35 }
36
37 src_install() {
38 cd "$SOURCE_DIR/zsh-$version"
39
40 make DESTDIR="$INSTALL_DIR/" install
41 }
42