#!/bin/sh

. ./_blfsset.sh

APPNAME=docker-ce
VER=19.03.11
TARGET=$APPNAME-$VER
TARGETBALL=$DLD/$APPNAME-src-$VER.tgz
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

echo Making...
make -j1 static \
DOCKER_BUILD_PKGS="static-linux" \
	1> $LOG/$TARGET.1_build.log 2>&1 || exit 1

TimeEnd

cd ..
#RemoveSrcDir
PorgingDone

