APP=libminizip
VERSION=1.2.11
BUILD=1sml
HOMEPAGE='https://www.zlib.net'
DESC="zip compression and decompression library"
REQUIRES="zlib"

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

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

  cd contrib/minizip
  libtoolize
  aclocal 
  autoconf
  automake --add-missing

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --disable-static

  make
  make install DESTDIR=$PKG 

  cd ../../
  cp README $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
c983b6d1e595d08b4cce8858a5df0ed01fc324807b1d191b06f0900224b51f247d482c2335828a6ec8e4e3778eb374dc3e31b8bfc23c69743926612d05cdd81e  zlib-1.2.11.tar.lz
"
