new package: re-add 'unzip'

closes #2820
This commit is contained in:
Stefan Saraev 2013-12-20 15:19:40 +02:00
parent cfa2cfbcdc
commit 3ded391359
2 changed files with 54 additions and 1 deletions

View File

@ -0,0 +1,53 @@
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
#
# This Program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This Program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenELEC.tv; see the file COPYING. If not, write to
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
# http://www.gnu.org/copyleft/gpl.html
################################################################################
PKG_NAME="unzip"
PKG_VERSION="60"
PKG_REV="1"
PKG_ARCH="any"
PKG_LICENSE="OSS"
PKG_SITE="http://www.info-zip.org/pub/infozip/"
PKG_URL="http://ftp.uk.i-scream.org/sites/www.ibiblio.org/gentoo/distfiles/$PKG_NAME$PKG_VERSION.tar.gz"
PKG_SOURCE_DIR="${PKG_NAME}${PKG_VERSION}"
PKG_DEPENDS=""
PKG_BUILD_DEPENDS_TARGET="toolchain"
PKG_PRIORITY="optional"
PKG_SECTION="compress"
PKG_SHORTDESC="unzip: PKUNZIP compatible compression utility"
PKG_LONGDESC="UnZip is an extraction utility for archives compressed in .zip format (also called "zipfiles"). Although highly compatible both with PKWARE's PKZIP and PKUNZIP utilities for MS-DOS and with Info-ZIP's own Zip program, the primary objectives have been portability and non-MSDOS functionality."
PKG_IS_ADDON="no"
PKG_AUTORECONF="no"
make_target() {
make CC=$TARGET_CC \
RANLIB=$TARGET_RANLIB \
AR=$TARGET_AR \
STRIP=$TARGET_STRIP \
CFLAGS="$CFLAGS" \
-f unix/Makefile generic
}
makeinstall_target() {
mkdir -p $INSTALL/usr/bin
cp unzip $INSTALL/usr/bin
$STRIP $INSTALL/usr/bin/unzip
}

View File

@ -25,7 +25,7 @@ PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="http://www.busybox.net"
PKG_URL="http://busybox.net/downloads/$PKG_NAME-$PKG_VERSION.tar.bz2"
PKG_DEPENDS="hdparm dosfstools e2fsprogs speedcontrol zip pciutils usbutils parted"
PKG_DEPENDS="hdparm dosfstools e2fsprogs speedcontrol zip unzip pciutils usbutils parted"
PKG_BUILD_DEPENDS="toolchain busybox-hosttools"
PKG_PRIORITY="required"
PKG_SECTION="system"