2006-04-06 17:26:00 +00:00
|
|
|
# Description: Very powerfull shell
|
|
|
|
# URL: http://www.zsh.org/
|
2011-06-20 15:25:33 +02:00
|
|
|
# Maintainer: Thomas Penteker, tek at serverop dot de
|
|
|
|
# Packager: Tilman Sauerbeck, tilman at crux dot nu
|
2008-12-11 19:58:47 +01:00
|
|
|
# Depends on: libpcre
|
2006-04-06 17:26:00 +00:00
|
|
|
|
|
|
|
name=zsh
|
2017-10-02 15:51:48 +02:00
|
|
|
version=5.4.2
|
2015-12-05 19:28:51 +01:00
|
|
|
release=1
|
2017-08-09 23:39:41 +02:00
|
|
|
source=(https://crux.nu/~tek/zsh-${version}.tar.xz _prt-get zsh-lovers.1)
|
2006-04-06 17:26:00 +00:00
|
|
|
|
|
|
|
build() {
|
2017-04-29 21:46:54 +02:00
|
|
|
cd $name-$version
|
2006-04-06 17:26:00 +00:00
|
|
|
|
|
|
|
./configure \
|
2011-06-20 15:25:33 +02:00
|
|
|
--prefix=/usr \
|
|
|
|
--enable-etcdir=/etc/zsh \
|
|
|
|
--enable-zshrc=/etc/zsh/zshrc \
|
2014-01-19 14:48:19 +01:00
|
|
|
--enable-zlogin=/etc/zsh/zshlogin \
|
2011-06-20 15:25:33 +02:00
|
|
|
--enable-zshenv=/etc/zsh/zshenv \
|
|
|
|
--enable-fndir=/usr/share/zsh/$version/functions \
|
|
|
|
--enable-site-fndir=/usr/share/zsh/site-functions \
|
|
|
|
--enable-maildir-support \
|
|
|
|
--enable-function-subdirs \
|
|
|
|
--enable-pcre \
|
|
|
|
--enable-restricted-r \
|
2014-01-19 14:48:19 +01:00
|
|
|
--enable-cap
|
|
|
|
|
2014-04-07 23:29:55 +02:00
|
|
|
# fix a bug in recent glibc versions (2.16)
|
|
|
|
sed -e '/#include "attr.mdh"/d;/#include "attr.pro/d' \
|
|
|
|
-e 's|\(#include <sys/xattr.h>\)|\1\n#include "attr.mdh"\n#include "attr.pro"|g' \
|
|
|
|
-i Src/Modules/attr.c
|
|
|
|
|
2006-04-06 17:26:00 +00:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
2016-03-07 22:57:04 +01:00
|
|
|
install -m 644 $SRC/zsh-lovers.1 $PKG/usr/share/man/man1/
|
2008-12-09 21:18:57 +01:00
|
|
|
|
2016-03-07 22:57:04 +01:00
|
|
|
rm $PKG/usr/share/man/man1/zshall.1
|
|
|
|
cat $PKG/usr/share/man/man1/* > $PKG/usr/share/man/man1/zshall.1
|
2014-01-19 14:48:19 +01:00
|
|
|
|
2011-06-20 15:25:33 +02:00
|
|
|
install -d $PKG/bin
|
|
|
|
ln -s /usr/bin/zsh $PKG/bin
|
|
|
|
|
2008-12-09 21:18:57 +01:00
|
|
|
# These completion files break things for CRUX' pkgutils,
|
|
|
|
# so remove them for now (see bug #381).
|
|
|
|
rm $PKG/usr/share/zsh/$version/functions/Completion/Unix/_pkg{add,rm,info}
|
2014-01-19 14:48:19 +01:00
|
|
|
|
|
|
|
install -m 644 -t $PKG/usr/share/zsh/site-functions $SRC/_prt-get
|
2006-04-06 17:26:00 +00:00
|
|
|
}
|