Contents
Here I use dh_make. But for simple packages it is best to use equivs !
Description
create a package containing one file. Here a pdf file. if you have trouble see ?HenriLeFoll/Tricks/Packaging/Trivial
Details
step 1 : create the source package and build it
- 1 - create a directory for the package : package-trivial-1.1
- 2 - put a file in the directory : package-trivial.pdf or another name
3 - create the source package with ?dh_make -s -n
- 4 - remove all the files which can be removed from the debian directory
- 5 - modify the files in the debian directory
6 - build the package with ?dpkg-buildpackage -rfakeroot
step 2 : test it with lintian
- 7 - test it with lintian
- 8 - install the package
- 9 - find the file :package-trivial.pdf
Solution
step 1 : create the source package and build it
- 2 - put a file in the directory : package-trivial.pdf or another name
$package-trivial-1.1$ ls
package-trivial.pdf
- 4 - remove all the files which can be removed from the debian directory
$package-trivial-1.1/debian$ rm -fr *.ex *.EX R*
- 5 - modify the files in the debian directory
$package-trivial-1.1/debian$ more docs
package-trivial.pdf
step 2 : test it with lintian
- 9 - find the file :package-trivial.pdf it should be in /usr/share/doc/package-trivial