[Verizon Samsung Galaxy S III] hansmoon:
i made a script.

it convert LP update.zip to KK zip.

used 7za android binary.

i hope ... this may help you...

#!/system/bin/sh

dir=/sdcard/Download/modding
cd $dir

N='\e[0m'
black='\e[0;30m'
green='\e[1;32m'
yellow='\e[1;33m'
purple='\e[1;35m'
cyan='\e[1;36m'
white='\e[1;37m'

bins="busybox 7za"
for binary in $bins ; do
bin=`which $binary`
if [ -z $bin ]
then
echo
echo ${yellow}"No $binary Binary."
echo "Needs : "$bins${N}
exit
fi
done

clear
echo
ltup="┌" ; rtup="┐"
ltlo="└" ; rtlo="┘"
hori="─" ; vert="│"

box() {
isko=
msg=$1
isko=$2
msglen=${#msg}
if [ "$isko" = "k" ] ; then
msglen=$(( msglen * 2 / 3 ))
elif [ "$isko" -gt 0 ] ; then
msglen=$isko
fi
boxwidth=$((msglen+2))
echo -n $ltup
for i in `seq 1 $boxwidth` ; do
echo -n $hori
done
echo $rtup
echo $vert" "$msg" "$vert
echo -n $ltlo
for i in `seq 1 $boxwidth` ; do
echo -n $hori
done
echo $rtlo
}

choice() {
ext=$1
title=$2
cnt=0
list=$(ls *.$ext)
echo
echo ${green}"List of $title"${N}
echo
for f in $list; do
(( cnt += 1 ))
echo $yellow$cnt$N $f
file[$cnt]=$f
done
echo
echo -n ${yellow}"Choose number: "${N} ; read input
echo
if [ "$input" -le "0" ] || [ "$input" -gt "$cnt" ]
then
echo
echo ${purple}"Out of Range."${N}
exit
else
target=${file[$input]}
fi
}

clear
echo
echo ${cyan}"╔══════════════════════════════╗"
echo "║ UPDATE ZIP Converter - MELFY ║"
echo "╚══════════════════════════════╝"${N}

choice zip "ZIP Files"

echo $green"ZIP file : "$yellow$target$N
echo

conv=conv_$target
tmp=$target"_tmp"
us=./$tmp/META-INF/com/google/android/updater-script

rm -f $conv
#cp $target $conv

echo $cyan"Making temp Folder."$N
echo

mkdir -p $tmp

echo $cyan"Extracting Files."$N
echo

7za x -tzip $target -o./$tmp -r -y > /dev/null 2>&1

echo $cyan"Modifying Folder Structure."$N
echo

apks=$( find ./$tmp -type f -iname "*.apk" )

for i in $apks ; do
path=${i%/*}
tpath=${path%/*}
fname=${i##*/}
#echo $apks
#echo $path
#echo $tpath
echo $fname
cp $i $tpath
done

echo

tlib=./$tmp/system/lib
mkdir -p $tlib

find ./$tmp -type f -iname "*.so" -exec cp {} $tlib \; > /dev/null 2>&1

rm -rf $path

echo $cyan"Modifying updater-script File."$N
echo

cat > $us << EOF
ui_print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=");
ui_print("= =");
ui_print("= Flash script created by =");
ui_print("= MELFY, [url]www.matcl.com[/url] =");
ui_print("= =");
ui_print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=");
ui_print("");
ui_print("");
ui_print("Mounting System...");
ui_print("");
run_program("/sbin/busybox", "mount", "/system");
ui_print("");
ui_print("Extrcting...");
package_extract_dir("system", "/system");
ui_print("");
ui_print("Setting Permissions...");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
set_perm_recursive(0, 0, 0755, 0644, "/system/priv-app");
set_perm_recursive(0, 0, 0755, 0644, "/system/framework");
set_perm_recursive(0, 0, 0755, 0644, "/system/lib");
ui_print("");
ui_print("Unmounting system...");
unmount("/system");
ui_print("");
ui_print("Completed...");
ui_print("");
ui_print("");
ui_print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=");
ui_print("= =");
ui_print("= MELFY, [url]www.matcl.com[/url] =");
ui_print("= =");
ui_print("=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=");
EOF

echo $cyan"Re-Zipping Files."$N
echo

echo -n "Wait...."

cd ./$tmp
7za a -tzip $conv -r -y > /dev/null 2>&1
cp $conv ../$conv
cd ..

echo -n "\b\b\b\b\b\b\b\b\b"

echo $cyan"Deleting temp Folder."$N
echo

rm -rf $tmp

echo
echo ${cyan}"════════════════════════════════"${N}
exit