summaryrefslogtreecommitdiff
path: root/zsh/Pkgfile
blob: 3949392aae7f87a531a0509149e9f89e4224846e (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.0.8
    9 release=1
   10 source=(http://downloads.sourceforge.net/project/zsh/zsh/$version/zsh-$version.tar.bz2 \
   11         _prt-get zsh-lovers.1)
   12 
   13 build() {
   14     cd $name-$version
   15 
   16     ./configure \
   17       --prefix=/usr \
   18       --mandir=/usr/man \
   19       --enable-etcdir=/etc/zsh \
   20       --enable-zshrc=/etc/zsh/zshrc \
   21       --enable-zlogin=/etc/zsh/zshlogin \
   22       --enable-zshenv=/etc/zsh/zshenv \
   23       --enable-fndir=/usr/share/zsh/$version/functions \
   24       --enable-site-fndir=/usr/share/zsh/site-functions \
   25       --enable-zsh-mem \
   26       --enable-maildir-support \
   27       --enable-function-subdirs \
   28       --enable-pcre \
   29       --enable-restricted-r \
   30       --enable-cap
   31 
   32     # fix a bug in recent glibc versions (2.16)
   33     sed -e '/#include "attr.mdh"/d;/#include "attr.pro/d' \
   34         -e 's|\(#include <sys/xattr.h>\)|\1\n#include "attr.mdh"\n#include "attr.pro"|g' \
   35         -i Src/Modules/attr.c
   36 
   37     make
   38     make DESTDIR=$PKG install 
   39 
   40     install -m 644 $SRC/zsh-lovers.1 $PKG/usr/man/man1/
   41 
   42     rm $PKG/usr/man/man1/zshall.1
   43     cat $PKG/usr/man/man1/* > $PKG/usr/man/man1/zshall.1
   44 
   45     install -d $PKG/bin
   46     ln -s /usr/bin/zsh $PKG/bin
   47 
   48     # These completion files break things for CRUX' pkgutils,
   49     # so remove them for now (see bug #381).
   50     rm $PKG/usr/share/zsh/$version/functions/Completion/Unix/_pkg{add,rm,info}
   51 
   52     install -m 644 -t $PKG/usr/share/zsh/site-functions $SRC/_prt-get 
   53 }

Generated by cgit