Skip to content
eevans edited this page Dec 21, 2010 · 1 revision

Users of Debian (and derivatives) rejoice!

Building Debian Packages

git-buildpackage(1) is used to build Debian source and binary packages from a Git repository. Two branches are used, the first containing the project's pristine source (--git-upstream-branch), and a branch which contains the Debian packaging (--git-debian-branch). In the Flewton repository master serves the former and debian the latter.

The debian branch also contains a git-buildpackage configuration file (.gbp.conf) that should Just Work, provided that:

  1. You have git-buildpackage installed.
  2. Flewton's build dependencies are installed (see Build-Depends in debian/control).
  3. You have a repository with local branches for master and debian.
  4. You are on the debian branch.

TL;DR

$ aptitude install git-buildpackage fakeroot build-essential
$ git clone git://github.com/flewton/flewton.git
$ cd flewton
$ git co -b origin/debian debian
$ git-buildpackage -rfakeroot -us -uc
Clone this wiki locally