# Description: (un)zip based on zlib
# URL: https://www.zlib.net/
# Maintainer: Tim Biermann, tbier at posteo dot de

name=minizip
version=1.3
release=1
source=(https://zlib.net/zlib-$version.tar.gz)

build() {
  cd zlib-$version/contrib/minizip

  cp Makefile Makefile.orig
  cp ../README.contrib readme.txt

  autoreconf --install

  ./configure --prefix=/usr \
    --enable-static=no
  make
  make DESTDIR=$PKG install

  rm $PKG/usr/include/minizip/crypt.h
}
