2 # Copyright (C) 2006-2017 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)$(PKG_REV
).
tar.gz
16 PKG_SOURCE_URL
:=@SF
/infozip
17 PKG_HASH
:=036d96991646d0449ed0aa952e4fbe21b476ce994abc276e49d30e686708bd37
18 PKG_MAINTAINER
:=Álvaro Fernández Rojas
<noltari@gmail.com
>
20 PKG_LICENSE
:=BSD-4-Clause
21 PKG_LICENSE_FILES
:=LICENSE
22 PKG_CPE_ID
:=cpe
:/a
:info-zip
:unzip
24 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)/unzip
$(PKG_REV
)
25 PKG_CHECK_FORMAT_SECURITY
:=0
27 include $(INCLUDE_DIR
)/package.mk
33 TITLE
:=De-archiver for .zip files
34 URL
:=http
://infozip.sourceforge.net
/UnZip.html
38 define Package
/unzip
/description
39 InfoZIP
's unzip program. With the exception of multi-volume archives
40 (ie, .ZIP files that are split across several disks using PKZIP's
/& option
),
41 this can handle any file produced either by PKZIP
, or the corresponding
45 define Build
/Configure
50 -DLARGE_FILE_SUPPORT \
57 $(MAKE
) -C
$(PKG_BUILD_DIR
) -f unix
/Makefile unzips \
58 $(TARGET_CONFIGURE_OPTS
) \
59 prefix="$(PKG_INSTALL_DIR)/usr" \
60 CFLAGS
="$(TARGET_CFLAGS)" \
61 CF
="$(TARGET_CFLAGS) -O $(TARGET_CPPFLAGS) -I. -DUNIX" \
63 LD
="$(TARGET_CC) $(TARGET_LDFLAGS)" \
67 define Package
/unzip
/install
68 $(INSTALL_DIR
) $(1)/usr
/bin
/
70 $(PKG_INSTALL_DIR
)/usr
/bin
/{funzip
,unzip
,unzipsfx
,zipgrep
} \
72 $(LN
) unzip
$(1)/usr
/bin
/zipinfo
75 $(eval
$(call BuildPackage
,unzip
))