summaryrefslogtreecommitdiff
path: root/repo/minizip
diff options
context:
space:
mode:
Diffstat (limited to 'repo/minizip')
-rw-r--r--repo/minizip/minizip.xibuild31
-rw-r--r--repo/minizip/zlib-1.2.8-minizip-include.patch27
2 files changed, 58 insertions, 0 deletions
diff --git a/repo/minizip/minizip.xibuild b/repo/minizip/minizip.xibuild
new file mode 100644
index 0000000..955ae7e
--- /dev/null
+++ b/repo/minizip/minizip.xibuild
@@ -0,0 +1,31 @@
+#!/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
+}
+
diff --git a/repo/minizip/zlib-1.2.8-minizip-include.patch b/repo/minizip/zlib-1.2.8-minizip-include.patch
new file mode 100644
index 0000000..c56e799
--- /dev/null
+++ b/repo/minizip/zlib-1.2.8-minizip-include.patch
@@ -0,0 +1,27 @@
+From 790c73ad93732d31ec6ae5ba4d7116d7f8fb46a2 Mon Sep 17 00:00:00 2001
+From: Kalev Lember <kalevlember@gmail.com>
+Date: Sat, 10 Aug 2013 14:54:04 +0200
+Subject: [PATCH] minizip: Add missing include
+
+Include zconf.h for z_crc_t, fixes a regression from commit
+63ba7582b80eb81b126c2931e485481c35596aab.
+---
+ contrib/minizip/crypt.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/contrib/minizip/crypt.h b/contrib/minizip/crypt.h
+index 1e9e820..835a2ba 100644
+--- a/crypt.h
++++ b/crypt.h
+@@ -27,6 +27,8 @@
+ Encryption is not supported.
+ */
+
++#include "zconf.h"
++
+ #define CRC32(c, b) ((*(pcrc_32_tab+(((int)(c) ^ (b)) & 0xff))) ^ ((c) >> 8))
+
+ /***********************************************************************
+--
+1.8.3.1
+