2 # Copyright © 2020 David Woodhouse <dwmw2@infradead.org>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_SOURCE_URL
:=https
://codeload.github.com
/zlib-ng
/minizip-ng
/tar.gz
/$(PKG_VERSION
)?
15 PKG_HASH
:=955800fe39f9d830fcb84e60746952f6a48e41093ec7a233c63ad611b5fcfe9f
17 PKG_MAINTAINER
:=David Woodhouse
<dwmw2@infradead.org
>
19 PKG_LICENSE_FILES
:=LICENSE
20 PKG_CPE_ID
:=cpe
:/a
:zlib-ng
:minizip-ng
24 include $(INCLUDE_DIR
)/package.mk
25 include $(INCLUDE_DIR
)/cmake.mk
28 -DCMAKE_POSITION_INDEPENDENT_CODE
=ON \
29 -DINSTALL_INC_DIR
=/usr
/include/minizip \
30 -DBUILD_SHARED_LIBS
=ON \
39 define Package
/minizip
40 TITLE
:=Fork of the popular zip manipulation library found in the zlib distribution
44 URL
:=https
://github.com
/zlib-ng
/minizip-ng
47 define Package
/minizip-dev
52 TITLE
:=Development files for the minizip library
55 define Package
/minizip
/description
56 minizip is a zip manipulation library written in C that is supported on Windows
, macOS
, and Linux
59 define Package
/minizip
/install
60 $(INSTALL_DIR
) $(1)/usr
/lib
61 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libminizip.so.
* $(1)/usr
/lib
/
64 define Build
/InstallDev
65 $(call Build
/InstallDev
/cmake
,$(1))
66 $(SED
) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr
/lib
/pkgconfig
/minizip.
pc
67 $(SED
) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr
/lib
/pkgconfig
/minizip.
pc
70 $(eval
$(call BuildPackage
,minizip
))