blob: fa29b852bbc91b0cdcfb9756bd7ccc0ebd05022e (
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.8
9 release=1
10 source=(http://www.zsh.org/pub/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 paths for kbd and usbutils
30 sed -i 's|/usr/share/keymaps|/usr/share/kbd/keymaps|g' Completion/Unix/Command/_loadkeys
31 sed -i 's|/usr/share/misc/usb.ids|/usr/share/usb.ids|g' Completion/Linux/Command/_lsusb
32
33 make
34 make DESTDIR=$PKG install
35
36 install -m 644 $SRC/zsh-lovers.1 $PKG/usr/share/man/man1/
37
38 rm $PKG/usr/share/man/man1/zshall.1
39 cat $PKG/usr/share/man/man1/* > $PKG/usr/share/man/man1/zshall.1
40
41 install -d $PKG/bin
42 ln -s /usr/bin/zsh $PKG/bin
43
44 # These completion files break things for CRUX' pkgutils,
45 # so remove them for now (see bug #381).
46 rm $PKG/usr/share/zsh/$version/functions/Completion/Unix/_pkg{add,rm,info}
47
48 install -m 644 -t $PKG/usr/share/zsh/site-functions $SRC/_prt-get
49 }
|