opt/zsh/Pkgfile
2015-12-05 19:28:51 +01:00

52 lines
1.5 KiB
Plaintext

# Description: Very powerfull shell
# URL: http://www.zsh.org/
# Maintainer: Thomas Penteker, tek at serverop dot de
# Packager: Tilman Sauerbeck, tilman at crux dot nu
# Depends on: libpcre
name=zsh
version=5.2
release=1
source=(https://crux.nu/~tek/zsh-5.2.tar.xz _prt-get zsh-lovers.1)
build() {
cd $name-$version
./configure \
--prefix=/usr \
--mandir=/usr/man \
--enable-etcdir=/etc/zsh \
--enable-zshrc=/etc/zsh/zshrc \
--enable-zlogin=/etc/zsh/zshlogin \
--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 \
--enable-cap
# 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
make
make DESTDIR=$PKG install
install -m 644 $SRC/zsh-lovers.1 $PKG/usr/man/man1/
rm $PKG/usr/man/man1/zshall.1
cat $PKG/usr/man/man1/* > $PKG/usr/man/man1/zshall.1
install -d $PKG/bin
ln -s /usr/bin/zsh $PKG/bin
# 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}
install -m 644 -t $PKG/usr/share/zsh/site-functions $SRC/_prt-get
}