user ubuntu-de...@lists.ubuntu.com usertag 507215 + ubuntu-patch karmic tag 507215 + patch stop
I was looking at this. There's a second issue after you fix the bashism, caused by the current version of fpc. TStringField.GetDataSize has changed signature to return an Integer rather than a Word. So a patch is needed, which is attached. (I figured it made sense to add onto the existing ftbfs bug, rather than file a new one.)
08_ftbfs_getdatasize.dpatch
Description: application/shellscript
signature.asc
Description: This is a digitally signed message part