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