Debian – How to include data files (pictures, text files, …) in a debian package

debianpackaging

I followed a tutorial to make a package application, but it only deals with the source; there's absolutely no other file types mentioned.

How do I include data files so that I can access them from my application in a package? For example, in the makefile, there's a $(DESTDIR) option, but I would never move the data files in $(DESTDIR)/usr/bin — at least I think I'm not supposed to!

Best Answer

If you are including binary data (pictures) you will want to create a version 3.0 package.

You put the additional files inside the debian/ directory and either move them from the debian/rules script using install -D -m 644 debian/filename $(DESTDIR)/path/to/install/to or using the debian/install file to list the file and the path to install it to like debian/filename path/to/install/to.

Related Question