To work out or fix a problem, usually in a makeshift fashion.
To construct in a shoddy, makeshift manner.