#!/bin/sh

NAME="minizip"
DESC="a library for manipulation with files from .zip archives"

MAKEDEPS=" automake autoconf libtool zlib"

PKG_VER=1.2.12
SOURCE="https://github.com/madler/zlib/archive/refs/tags/v$PKG_VER.tar.gz"

ADDITIONAL="
zlib-1.2.8-minizip-include.patch
"

prepare() {
    cd contrib/minizip
	apply_patches
	autoreconf -fi
}

build() {
	./configure \
		--prefix=/usr \
		--enable-static=yes
	make
}

package() {
	make DESTDIR="$PKG_DEST" install
}