Looks like the dpkg-architecture call needs to be replaced with the result like it is done for the postinst of gdk-pixbuf.
Looks like the dpkg-architecture call needs to be replaced with the result like it is done for the postinst of gdk-pixbuf.