zip: convert to new package format

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-07-17 19:04:03 +02:00
parent 3f0ad928db
commit 985946ba61
3 changed files with 17 additions and 63 deletions

View File

@ -1,34 +0,0 @@
#!/bin/sh
################################################################################
# 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
################################################################################
. config/options $1
cd $BUILD/$1*
make CC=$TARGET_CC \
CPP=${TARGET_PREFIX}cpp \
RANLIB=$TARGET_RANLIB \
AR=$TARGET_AR \
STRIP=$TARGET_STRIP \
LOCAL_ZIP="$TARGET_CFLAGS" \
-f unix/Makefile generic

View File

@ -1,27 +0,0 @@
#!/bin/sh
################################################################################
# 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
################################################################################
. config/options $1
mkdir -p $INSTALL/usr/bin
cp $BUILD/$1*/zip $INSTALL/usr/bin

View File

@ -26,11 +26,26 @@ PKG_LICENSE="Info-ZIP"
PKG_SITE="http://www.info-zip.org/pub/infozip/"
PKG_URL="$SOURCEFORGE_SRC/infozip/Zip%203.x%20%28latest%29/3.0/${PKG_NAME}${PKG_VERSION}.tar.gz"
PKG_DEPENDS="bzip2"
PKG_BUILD_DEPENDS="toolchain bzip2"
PKG_BUILD_DEPENDS_TARGET="toolchain bzip2"
PKG_PRIORITY="optional"
PKG_SECTION="compress"
PKG_SHORTDESC="zip: PKUNZIP compatible compression utility"
PKG_LONGDESC="zip is a compression and file packaging utility for Unix, VMS, MSDOS, OS/2, Windows 9x/NT/XP, Minix, Atari, Macintosh, MVS, z/OS, Amiga, Acorn RISC, and other OS. It is analogous to a combination of the Unix commands tar(1) and compress(1) (or tar(1) and gzip(1)) and is compatible with PKZIP (Phil Katz's ZIP for MSDOS systems) and other major zip utilities."
PKG_IS_ADDON="no"
PKG_IS_ADDON="no"
PKG_AUTORECONF="no"
make_target() {
make CC=$TARGET_CC \
CPP=${TARGET_PREFIX}cpp \
RANLIB=$TARGET_RANLIB \
AR=$TARGET_AR \
STRIP=$TARGET_STRIP \
LOCAL_ZIP="$TARGET_CFLAGS" \
-f unix/Makefile generic
}
makeinstall_target() {
mkdir -p $INSTALL/usr/bin
cp zip $INSTALL/usr/bin
}