Skip to content

Instantly share code, notes, and snippets.

@cas--
Created February 22, 2016 19:10
Show Gist options
  • Save cas--/000a66f3f3f3d604903e to your computer and use it in GitHub Desktop.
Save cas--/000a66f3f3f3d604903e to your computer and use it in GitHub Desktop.
cd <packaging_dir>
wget http://download.deluge-torrent.org/source/deluge-<tarball version>.tar.gz
mv deluge-<tarball version>.tar.gz deluge_<tarball version>.orig.tar.gz # Use _ and add '.orig'
export DEBEMAIL="[email protected]" DEBFULLNAME="Full Name"
cd deluge_deb
git co upstream
extract tarball to deluge_deb
git add .
git ci -am "import upstream deluge <tarball version>"
git co master
git merge upstream
dch -v <tarball version>-0 -D unstable --force-distribution "New upstream version"
git ci -am "update changelog"
git co <distribution>
git merge master # Results in merge conflict
git co --ours debian/changelog
dch -v <tarball version>-0~<distribution>~ppa1 -D <distribution> --force-distribution "New upstream version"
git add debian/changelog
git ci -m "Merge branch 'master' into <distribution>"
# debuild -S -si # New upstream package signed
# First dist use:
debuild -S -sa
# Subsequent dists use:
debuild -S -sd
dput ppa:deluge-team/ppa <distribution>-source.changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment