5 dh_builddeb - build debian packages
10 use Debian::Debhelper::Dh_Lib;
14 dh_builddeb [debhelper options] [--destdir=directory]
15 [--name=filename] [-uparams] [-- params]
19 dh_builddeb simply calls L<dpkg(8)> to build a debian package or
26 =item B<--destdir=>I<directory>
28 Use this if you want the generated .deb files to be put in a directory
29 other than the default of ".."
31 =item B<--name=>I<filename>
33 Use this if you want to force the generated .deb file to have a particular
34 file name. Does not work well if more than one .deb is generated!
40 Pass I<params> to L<dpkg(1)|dpkg> when it is used to build the
49 # Set the default destination directory.
50 if (! defined $dh{DESTDIR}) {
54 if (! defined $dh{FILENAME}) {
58 $dh{FILENAME}="/$dh{FILENAME}";
61 foreach my $package (@{$dh{DOPACKAGES}}) {
62 my $tmp=tmpdir($package);
63 doit("dpkg","--build",$tmp,"$dh{DESTDIR}$dh{FILENAME}",@{$dh{U_PARAMS}});
70 This program is a part of debhelper.
74 Joey Hess <joeyh@debian.org>