Support inline patch

Sometimes, there may be temporary patch that are not adopted by package
upstream, so this patch is appended to the package class.