Rebuilding the package should work. You will only have to change the versions in the build process.
After you install the package you have built, you can safely dist-upgrade. If you have tried to dist-upgrade before, I will help you resolve the issues.
