File: 71-emptypkg.txt

package info (click to toggle)
debmake-doc 1.22-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,952 kB
  • sloc: makefile: 916; sh: 692; python: 202; ansic: 114; sed: 16
file content (30 lines) | stat: -rw-r--r-- 974 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// vim:set filetype=asciidoc:
[[emptypkg]]
=== Cherry-pick templates

Here is an example of creating a simple Debian package from a zero-content source in an empty directory.

This is a good way to obtain all the template files without cluttering the upstream source tree you are working on.

Let's assume this empty directory to be *debhello-0.1*.

----
include::../examples/debhello-0.1_build-1/step000.slog[]
----

Let's generate the maximum amount of template files.

Let's also use the "`*-p* __debhello__ *-t -u* __0.1__ *-r* __1__`" options to create the missing upstream tarball with default *-x3* and *T* options.

----
include::../examples/debhello-0.1_build-1/step200.slog[lines=1..3]
 ...
----

Let's inspect generated template files.

----
include::../examples/debhello-0.1_build-1/step201.slog[]
----

Now you can copy any of these generated template files in the __debhello-0.1/__**debian/** directory to your package as needed while renaming them as needed.