description="A very advanced and programmable command interpreter (shell) for UNIX"
url="http://www.zsh.org"
contributors="alienus, fanch, tnut"
packager="greg<greg@nutyx.org>"


# Depends on: pcre 

name=zsh
version=5.4.2
release=1

source=(http://www.zsh.org/pub/$name-$version.tar.gz)

build(){
    cd $name-$version
    ./configure --prefix=/usr \
                --bindir=/bin \
                --sysconfdir=/etc/zsh \
                --enable-etcdir=/etc/zsh
    make
    makeinfo Doc/zsh.texi --html -o Doc/html
    makeinfo Doc/zsh.texi --html --no-split --no-headers -o Doc/zsh.html
    makeinfo Doc/zsh.texi --plaintext -o Doc/zsh.txt
    make DESTDIR=$PKG install

    make infodir=$PKG/usr/share/info install.info
    install -v -dm755 $PKG/usr/share/doc/zsh-$version/html
    install -v -m644 Doc/html/* $PKG/usr/share/doc/zsh-$version/html
    install -v -m644 Doc/zsh.{html,txt} $PKG/usr/share/doc/zsh-$version
}
