blob: 89e5fc7393d7a73a46e05937f163bd713b469a19 (
plain)
1 # Description: Very powerfull shell
2 # URL: http://www.zsh.org/
3 # Maintainer: Thomas Penteker, tek at serverop dot de
4 # Packager: Tilman Sauerbeck, tilman at crux dot nu
5 # Depends on: libpcre
6
7 name=zsh
8 version=5.4.2
9 release=1
10 source=(https://crux.nu/~tek/zsh-${version}.tar.xz _prt-get zsh-lovers.1)
11
12 build() {
13 cd $name-$version
14
15 ./configure \
16 --prefix=/usr \
17 --enable-etcdir=/etc/zsh \
18 --enable-zshrc=/etc/zsh/zshrc \
19 --enable-zlogin=/etc/zsh/zshlogin \
20 --enable-zshenv=/etc/zsh/zshenv \
21 --enable-fndir=/usr/share/zsh/$version/functions \
22 --enable-site-fndir=/usr/share/zsh/site-functions \
23 --enable-maildir-support \
24 --enable-function-subdirs \
25 --enable-pcre \
26 --enable-restricted-r \
27 --enable-cap
28
29 # fix a bug in recent glibc versions (2.16)
30 sed -e '/#include "attr.mdh"/d;/#include "attr.pro/d' \
31 -e 's|\(#include <sys/xattr.h>\)|\1\n#include "attr.mdh"\n#include "attr.pro"|g' \
32 -i Src/Modules/attr.c
33
34 make
35 make DESTDIR=$PKG install
36
37 install -m 644 $SRC/zsh-lovers.1 $PKG/usr/share/man/man1/
38
39 rm $PKG/usr/share/man/man1/zshall.1
40 cat $PKG/usr/share/man/man1/* > $PKG/usr/share/man/man1/zshall.1
41
42 install -d $PKG/bin
43 ln -s /usr/bin/zsh $PKG/bin
44
45 # These completion files break things for CRUX' pkgutils,
46 # so remove them for now (see bug #381).
47 rm $PKG/usr/share/zsh/$version/functions/Completion/Unix/_pkg{add,rm,info}
48
49 install -m 644 -t $PKG/usr/share/zsh/site-functions $SRC/_prt-get
50 }
|