diff --git a/packages/compress/zip/build b/packages/compress/zip/build deleted file mode 100755 index f5d0c11d7c..0000000000 --- a/packages/compress/zip/build +++ /dev/null @@ -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 - diff --git a/packages/compress/zip/install b/packages/compress/zip/install deleted file mode 100755 index 8b4df09993..0000000000 --- a/packages/compress/zip/install +++ /dev/null @@ -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 - diff --git a/packages/compress/zip/meta b/packages/compress/zip/package.mk similarity index 83% rename from packages/compress/zip/meta rename to packages/compress/zip/package.mk index 8ac8d05cae..c0b1e0c7f3 100644 --- a/packages/compress/zip/meta +++ b/packages/compress/zip/package.mk @@ -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 +}