Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a system in Ubuntu which simplify the process of getting the sources from git, compile and package it into a deb?

I'm looking for something similar to the PKGBUILD in ArchLinux which can be configured with any kind of vcs repo as source and then packaged as that distributions package format.

share|improve this question
up vote 4 down vote accepted

You might want to have a look at git-buildpackage.

There are similar tools, one for each VCS:

$ aptitude search buildpackage
p   arch-buildpackage            - tools for maintaining Debian packages using arch              
v   bzr-buildpackage             -                                                               
p   cvs-buildpackage             - A set of Debian package scripts for CVS source trees.         
p   darcs-buildpackage           - Suite to help with Debian packages in Darcs archives          
p   git-buildpackage             - Suite to help with Debian packages in Git repositories        
p   mercurial-buildpackage       - Suite to maintain Debian packages in Mercurial repository     
p   svn-buildpackage             - helper programs to maintain Debian packages with Subversion   
p   tla-buildpackage             - Suite to help with Debian packages in Arch archives           
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.