APP=zip
VERSION=30
BUILD=1sml
HOMEPAGE="http://www.info-zip.org/Zip.html"
DOWNLOAD="https://downloads.sourceforge.net/infozip/zip30.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
"
