#!/bin/sh

. ./_blfsset.sh

APPNAME=zip
VER=3.0
TARGET=${APPNAME}30
TARGETBALL=$DLD/$TARGET.tar.gz
TARGETDIR=$TARGET

echo $TARGET

. $WRK/_checkRequired.sh ""
. $WRK/_checkOptions.sh  ""
. $WRK/_checkTarball.sh
. $WRK/_checkExit.sh "$1" || exit $?

cd $SRC
RemoveSrcDir
Extract

TimeStart

cd $TARGETDIR

Making
make -f unix/Makefile generic_gcc \
	1> $LOG/$TARGET.2_make.log 2>&1

Installing
porg -lp zip-$VER "\
make prefix=/usr -f unix/Makefile install" \
	1> $LOG/$TARGET.3_install.log 2>&1

TimeEnd

cd ..
RemoveSrcDir
PorgingDone zip-$VER

