app=zip
version=30
build=1sml
homepage="http://www.info-zip.org/Zip.html"
download="https://downloads.sourceforge.net/infozip/zip$version.tar.gz"
desc="Compression and file packaging utility"
requires="bzip2"

build() {
  mkandenterbuilddir
  rm -rf "$app$version"

  tar xf $srcdir/$app$version.tar.?z
  cd "$app$version"
  fixbuilddirpermissions

  make -f unix/Makefile generic_gcc \
  CFLAGS="$CFLAGS" 

  make prefix="$pkg" -f unix/Makefile install
  mkdir -p $pkg/share/man
  mv $pkg/man/man* $pkg/share/man/
  rmdir $pkg/man

  cp LICENSE $pkgdocs/

  mkfinalpkg
}

sha512sums="
d2a0bcb3421dfcb205ec656be6d31a61ac59a4d093ee6e2edac5242a4557369cf140fd0040e89281cd90e4d00f04b42cb3a23fb9fd45df4a1efde6040c4035fe  zip30.tar.lz
"
