Skip to content

Instantly share code, notes, and snippets.

@cas--
Created February 22, 2016 19:07
Show Gist options
  • Save cas--/ddaf977ebd73d322a4d2 to your computer and use it in GitHub Desktop.
Save cas--/ddaf977ebd73d322a4d2 to your computer and use it in GitHub Desktop.
Debian Packaging for PPA
https://wiki.ubuntu.com/PackagingGuide/Python#The%20debhelper%20way
http://wiki.vinuxproject.org/index.php?title=Vinux_Packaging_Tutorial#3.4_Creating_New_Source
https://help.launchpad.net/Packaging/PPA
https://wiki.ubuntu.com/PbuilderHowto
http://anonscm.debian.org/gitweb/?p=collab-maint/deluge.git;a=summary
export DEBEMAIL="[email protected]"
export DEBFULLNAME="Full Name"
# Update package debian/changelog
dch -n # New entry
dch -e # Edit existing entry
dch -i # Increment version
dch -v # Set version
# create a patch
edit-patch 12-make-things-work-again
# Apply any patches for this package (not usually needed)
quilt push -a
# Build signed source package
# This command is used for source from upstream debian however
# the one just below it might be better.
debuild -S -sa -k0603DBFA # always upload orig.tar.gz (and forced key)
debuild -S -sd # use archive from repo
# This is command used for the standalone non-debian 1.3.3 PPA package
debuild -S -si # New upstream package signed
# Jaunty needs to explicitly ignore git, if being used e.g.
debuild -S -si -i.git
# Builds deb packages for local testing
debuild -us -uc
For more details on debuild options see:
dpkg-buildpackage --help
# Remember to remove patches when using git repo
quilt pop -a
# From irc discussion:
## use -sa for the first upload (it forces the inclusion of the .orig.tar.* in the upload) and -sd for those which reuse that tarball
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment