I was able to build Lime2 Debian Jessie last week but this week I am getting the same common.sh error.
This is despite the last fix mentioned by Igor.
lines 384 and 385 from common.sh
# resize partition to new size
BLOCKSIZE=$(LANGUAGE=english resize2fs $LOOP $NEWSIZE"M" | grep "The filesystem on" | awk '{ print $(NF-2)}')
NEWSIZE=$(($BLOCKSIZE*$UNITSIZE/1024))
cp: cannot create regular file ‘/home/ssn/Lime-Debian/output/output/sdcard/etc/lirc/lircd.conf’: No such file or directory
[ ok ] Fingerprinting
[ ok ] Possible after install
[ ok ] Writing boot loader
[ ok ] Shrink partition and image to real size with 10% free space
resize2fs 1.42.9 (4-Feb-2014)
The containing partition (or device) is only 517464 (1k) blocks.
You requested a new size of 541696 blocks.
/home/ssn/Lime-Debian/lib/common.sh: line 385: *1024/1024: syntax error: operand expected (error token is "*1024/1024")
[ ok ] Runtime 101 min