That part is easy: You build the 32-bit components on i386 and the 64-bit components on amd64. Cross-architecture dependencies are still a bit tricky, though.