DebianPackaging
eevans edited this page Dec 21, 2010
·
1 revision
Users of Debian (and derivatives) rejoice!
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:
- You have
git-buildpackage
installed. - Flewton's build dependencies are installed (see Build-Depends in debian/control).
- You have a repository with local branches for master and debian.
- You are on the debian branch.
$ 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