I used this before to remember all the necessary commands, without reading the whole guide again and again. As I don’t upload many packages, it’s easy to forget the details…
This skips many one-time steps (like setting up launchpad access), error scenarios or even changed dependencies, but helps in trivial cases. For those more complex scenarios, check official docs.
- Go to some empty work directory
1cd <some dir> - Fetch previous version from repository. You will get some files and a directory “packagename-vesion”, called later <old-version-dir>
1sudo apt-get source <package-name> - Same place, download the new tarball.
1wget <url to new source> - Enter the old package directory
1cd <old-version-dir> - Use uupdate to prepare new version’s directory. You may need to specify the new version explicitly
1uupdate -v <new-version (just the upstream number)> ../<upstream-tarball> - Go there
1cd ../<new-version-dir> - Update the changelog. The version should be something like <package-name>-<upstream-version>-0ubuntu0ppa0 (increase last 0 for minor ppa upgrades). Remember to set target distro correctly
1dch -i - Check it builds fine
1debuild - Build source package
1debuild -S - Upload it to launchpad
1dput ppa:<username>/<ppaname> <long-new-version>.changes - You should get an email that the package was accepted. After a while check the build status to make sure there were no problems.
Good luck!