# Maintainer: PktSurf <smlinux@pktsurf.in>
app=zsh
version=5.6.2
build=1sml
homepage="http://www.zsh.org"
requires="netbsd-curses gdbm"
desc="UNIX command interpreter shell that resembles the Korn shell"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions
}

build() {
  # 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
"
