#!/bin/sh
#
. /lib/libtaz.sh

WOK="/home/slitaz/wok"
PKGS="/home/slitaz/packages"
ARCH="arm"

cd $WOK
count=0

for pkg in *
do
	unset HOST_ARCH
	. $pkg/receipt
	# Check only packages include in arch 
	if echo "$HOST_ARCH" | fgrep -q "$ARCH"; then
		# *.tazpkg
		if [ ! -f "$PKGS/${PACKAGE}-${VERSION}-${ARCH}.tazpkg" ]; then
			count=$(($count + 1))
			colorize 34 "$pkg"
		fi
	fi
done
echo "Uncook packages: $count"
