distribution/packages/compress/unzip/package.mk
2023-09-30 23:15:36 +00:00

23 lines
793 B
Makefile

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
PKG_NAME="unzip"
PKG_VERSION="60"
PKG_SHA256="036d96991646d0449ed0aa952e4fbe21b476ce994abc276e49d30e686708bd37"
PKG_LICENSE="OSS"
PKG_SITE="http://www.info-zip.org/pub/infozip/"
PKG_URL="https://sourceforge.net/projects/infozip/files/UnZip%206.x%20(latest)/UnZip%206.0/unzip60.tar.gz"
PKG_DEPENDS_TARGET="toolchain"
PKG_LONGDESC="UnZip is an extraction utility for archives compressed in .zip format."
PKG_TOOLCHAIN="manual"
make_target() {
make CC=${CC} RANLIB=$RANLIB AR=${AR} STRIP=${STRIP} \
-f unix/Makefile generic LOCAL_UNZIP="${CFLAGS}"
}
makeinstall_target() {
mkdir -p ${INSTALL}/usr/bin
cp unzip ${INSTALL}/usr/bin
${STRIP} ${INSTALL}/usr/bin/unzip
}