build packages in /tmp
simple bash map function