APP=zsh
VERSION=5.6.2
BUILD=1sml
HOMEPAGE="http://www.zsh.org"
DOWNLOAD=''
REQUIRES="netbsd-curses gdbm"
DESC="Zsh is a UNIX command interpreter shell that resembles the Korn shell"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  # relieve dependency on autoconf
  sed -i '/autoheader/d' Makefile.in

  ./configure \
    --prefix="" \
    --enable-libc-musl 

  make
  make install DESTDIR=$PKG

  cp LICEN?E $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
29f403fea7947c258a63d3fd33ffa94afa8ca12032cc0d55305e08a5bbc49b53baa9efa9cac0c44eef8e9198239bafc707afcf7ca71c9b9b9941895e436193f7  zsh-5.6.2.tar.lz
"
