When you build a deb how do you make it so arch independent data such as plugin files to be packaged into a separated .deb?

  • This is a very general question that depends on your build system. Are you using debhelper?
    – jordanm
    Commented Jul 4, 2013 at 2:34
  • @jordanm Yes, using debhelper
    – Flint
    Commented Jul 4, 2013 at 2:40

1 Answer 1


In debian packaging, the control file contains the details about the binary packages that the source package will produce. You will need to specify both your arch dependent and arch independent packages in the control file.

Using debhelper, you will want your software's build system to install to debian/tmp. How you do this will depend on the build system of the software. For example, if the software's build system uses GNU autotools, you would use the following for debhelper short rules:

        ./configure \

From there, you want to use dh_install to move those files into the appropriate directories for packaging. To do this, you need a file for each binary package named <package_name>.install. The file should contain filenames or patterns to be included in the package.

Here is the example provided by the dh_install manpage:

   Suppose your package's upstream Makefile installs a binary, a man page,
   and a library into appropriate subdirectories of debian/tmp. You want
   to put the library into package libfoo, and the rest into package foo.
   Your rules file will run "dh_install --sourcedir=debian/tmp". Make
   debian/foo.install contain:


   While debian/libfoo.install contains:


   If you want a libfoo-dev package too, debian/libfoo-dev.install might


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .