2 The Pages
liquibyte edited this page 2026-11-19 17:54:48 -06:00

The Pages

Every page of a project and every field on it: Package, Description, Build, Files, Desktop, Dependencies, Scripts, Legal, Changelog and Publish.

The pages

Package

Field What it is
Name The package's name, which is also the name of its .deb file. Lower case letters, digits and + - ., at least two characters, starting with a letter or a digit.
Version The program's version, such as 1.4. It starts with a digit and uses letters, digits and . + ~. A version with ~ sorts before the same version without it, so 2.0~beta1 comes before 2.0. The line under the field says whether the version is newer than the release before it, as apt compares them.
Epoch Leave it empty. An epoch is a number put before the version (1:1.4) that apt compares first; it is only needed to go back to a lower version number, and once set it can never go down.
Maintainer Who answers for the package, as Name <email>. A new project takes it from the DEBFULLNAME and DEBEMAIL environment variables, as Debian's own tools do.
Architecture This machine's for a package with compiled programs (amd64 on most PCs). All for one with only scripts, data or documents, which installs on every kind of machine.
Section Where the package goes in Debian's list: each section is named with what it holds.
Priority Nearly every package is optional.
Homepage The program's web page, if it has one.
Source code The web page where its source code can be browsed, if it is online (https://...). Software centers show it as a link.
Distribution The distribution whose releases the list below shows: Debian, Devuan, Ubuntu, and any other whose table is in /usr/share/distro-info. It starts at this system's. See Building for other releases.
Look Up Downloads the package list of each ticked release (about 10 MB each) and reads its C library's version and the Debian release it is based on, which then show under it.
Show ended releases Also lists the releases whose support has ended. A ticked one is always listed.
The releases Tick each release to make a package for. Under each: its C library (glibc) and base, once looked up, and until when it is supported. A package for a release also installs on the distributions based on it. None ticked: Build makes one package for this system's release, with no suffix on its version.

Above the list, the page says which packages Build will make, with their versions, and what will be downloaded.

Description

Field What it is
Summary One line that says what the program is, at most 80 characters, with no full stop at the end. Start with what the program is, not with its name (apt shows the name already) or with "a" or "the".
Long description A few sentences on what the program does and who it is for. Write ordinary paragraphs with an empty line between them.
How apt shows it The description as apt show will show it. Debwright puts a space before each line and turns each empty line into  ., as the control file needs.

Build

Field What it is
Detect Again Looks at the folder again and fills in the build and install commands for what it finds: Make, CMake, Meson or a configure script.
Build The shell command that builds the program, run in the folder. Empty when nothing needs building.
Install The shell command that puts the program's files into the package. $ROOT is the package's folder: the files go there at the paths they will have on the user's system, for example make install DESTDIR="$ROOT" PREFIX=/usr puts /usr/bin/myprog at $ROOT/usr/bin/myprog. Your Makefile's install target must use DESTDIR and PREFIX for this.
Build dependencies The development packages the program is built with, as a comma list, such as libx11-dev, libxft-dev. A release's sysroot holds these and libc6-dev. A build against this system finds them from the headers the compiler opened and the modules asked of pkg-config, and fills the field in when it is empty; the line under it names what the last build used.
Other releases How a package for another release is built. Automatic (the default): in a build environment when the folder has C++ files, with a sysroot otherwise. Always a build environment, or Always a sysroot. The line under it says which this project gets. See Building for other releases.
Build in a clean copy On (the default): the folder is copied to a clean place first, without version control folders, object files and old packages, so nothing left over from your own builds goes into the package. Off: the build runs in your folder itself, which is faster.
Keep their debug symbols With Strip on: each program's debug information is first kept by objcopy in /usr/lib/debug/.build-id/, under the program's build ID, and packed as name-dbgsym (section debug), as Debian's own tools make it, so that a crash report can be read with function names. The program must be built with -g.
Lintian overrides lintian tags the package tells lintian to accept, one on each line, such as no-manual-page [usr/bin/myprog]: written to /usr/share/lintian/overrides/name. A double click on a tag in the Lintian tab adds it.
Strip the programs Removes the debug information from the programs, which makes them much smaller.
Put the .deb in The folder for the finished .deb. Empty: the folder that holds your program's folder. An older .deb of the same package in that folder is removed.
Environment One NAME=value on each line, given to every command of the build, such as CFLAGS=-O2.
Leave out of the package One pattern on each line. Every file or folder of the package that matches one is removed after the install command, for example *.la or usr/share/doc/*/INSTALL.
Test command What Test Install runs after it has installed the package, as you would type it in a shell, for example myprog --version. Empty: the package is only installed and removed.

Files

Other packages from this build: some of the files can go in packages of their own, such as the headers in a -dev package. One package on each line, as name | summary | files | depends, for example myprog-dev | Development files for myprog | usr/include/* usr/lib/*/*.so | myprog (= ${version}). After the programs are stripped, the files that match a line's patterns (relative to the package's folder, * matching across folders) move out of the main package into that one, which gets its own control file, the copyright file and changelog, its Depends worked out from its own programs and libraries plus its own line's, and its own .deb. ${version} is the package's version, so the packages of one build go together.

After a build, the Files page shows every file the main package installs, as a tree of folders, with each file's mode and size. DEBIAN/ holds the control file and the checksums; it is not installed.

Desktop

For a program with a window: its entry in the desktop's menus, its icon, and its entry in software centers.

The Desktop page with the Light theme

The Desktop page with the Light theme: the menu entry, the icon at five sizes on a light and a dark color, and the software center entry.

Field What it is
Give it a menu entry On: the package installs /usr/share/applications/<name>.desktop, so the desktop's menus show the program.
Own .desktop file A menu entry file you keep in your program's folder, used as it is. Empty: Debwright writes one from the fields below.
Name The program's name in the menus, such as "Photo Renamer". Empty: the package's name.
Generic name What kind of program it is, such as "Photo Tool".
Comment The menus' tooltip. Empty: the summary.
Categories Where the menus put the program, with ; after each, such as Graphics;Photography;. The list under the field adds a registered category. At least one should be a main category (AudioVideo, Development, Education, Game, Graphics, Network, Office, Science, Settings, System or Utility). A category of your own starts with X-.
Opens The file types it opens, as MIME types with ; after each, such as image/jpeg;image/png;.
Command The command line the menu runs. Empty: the package's name, with %F (the files to open) when it opens files.
Keywords Words a menu's search finds it by, with ; after each.
Window class The class its window has, so that a taskbar matches the window with the menu entry.
It runs in a terminal For a program with no window of its own.
Icon file One SVG, or a PNG of 256 pixels or more, in your program's folder. Debwright draws it at 16, 24, 32, 48, 64, 128 and 256 pixels for the hicolor icon theme, puts the SVG in as the scalable icon and the 48 pixel one in /usr/share/pixmaps. Under the field it is shown at 16 to 64 pixels on a light and a dark color, so you can see it is clear at each size.
Show the program in software centers On: the package installs an AppStream file, /usr/share/metainfo/<ID>.metainfo.xml, made from the name, the summary, the description, the license, the homepage, the file types and every release of the changelog. GNOME Software, Discover and others show the program from it.
ID Your domain backwards and the program's name, such as org.example.myprog. Never change it after the first release: software centers know the program by it.
Screenshots The web address of each screenshot, one on each line; the first is the main one. Software centers download them from there, so they must be online.

Dependencies

The line at the top shows the libraries the last build found its programs need. They go into Depends by themselves, with the lowest versions that work; you add only what Debwright can't see, such as a program yours runs.

Field Use it for
Depends Packages needed to run the program.
Pre-Depends Packages needed even while the package is being installed. Rarely needed.
Recommends Packages installed with it unless the user says no.
Suggests Packages offered to the user, but not installed.
Breaks Versions of other packages this one stops working.
Conflicts Packages that can't be installed at the same time as this one.
Replaces Packages whose files this one takes over.
Provides Names of features this package gives others, such as a virtual package.

Write a comma between packages, | between choices, and a version in brackets: libfoo (>= 1.2), bar | baz. The comparisons are << <= = >= >>.

Scripts

dpkg runs a package's scripts when it installs and removes it. Most programs need none: icons, menus and manual pages are taken care of by dpkg itself. The tasks at the top of the page become correct scripts by themselves:

Field What it does
System user On install, a system user of this name, with a group of its own, no home and no login, for a program that runs as its own user. It is not removed with the package, so files it owns keep their owner.
Service A systemd .service file in your program's folder. It is installed in /usr/lib/systemd/system, enabled and started on install, and stopped and disabled on removal.
After install Commands run when the package is installed or upgraded, one on each line.
Before removal Commands run before the package is removed.
Remove on purge Full paths of folders and files the program made, one on each line, removed when the user purges the package (apt purge), such as /var/lib/myprog. Folders of the system itself, such as /usr or /var/lib, are refused.

Under them, Script chooses one of the four scripts: preinst (before the files are unpacked), postinst (after), prerm (before they are removed) and postrm (after). A script written by hand in the field under it is used as it is, in place of the one made from the tasks; its first line names its shell, such as #!/bin/sh. What dpkg will run shows the script the package will have.

Field What it is
License The license's SPDX name, such as MIT or GPL-3.0-or-later. The list under it fills it in with a common one.
License text The file in your program's folder with the license's full text. It goes into the package's copyright file.
Holder Who holds the copyright.
Years The years of the copyright, such as 2024-2026.
Scan the Source Reads the top of every text file in the folder: its SPDX-License-Identifier line and its first Copyright line. For a file without an SPDX line, licensecheck names the license from its text, when it is installed. Files under another license or holder than the project's own go to the Other licenses list, a folder whose files all say the same as one group. With no license or holder set yet, it fills them in: the license from the license file at the top of the folder, the holder from the files under it.
Other licenses One group of files on each line, as `files

From these Debwright writes /usr/share/doc/<name>/copyright in Debian's machine-readable format: a Files: * section for the project's own license, one for each line of Other licenses, and the text of each other license: from /usr/share/common-licenses when Debian has it, else from a license file in the group's folder, else the address of its text.

The Legal page after Scan the Source

The Legal page after Scan the Source: lib/ is under BSD-3-Clause, and becomes a section of its own in the copyright file.

Changelog

The changes in this release, one on each line. A line that starts with a space goes on with the change before it. Under it, the earlier releases. Debwright writes the changelog in Debian's form, every release with its version, its date and the maintainer, and installs it compressed as /usr/share/doc/<name>/changelog.gz.

Next Version (on the toolbar and in the Package menu) raises the version, 1.4 to 1.5 and 1.9 to 1.10, adds a new release with today's date at the top of the changelog, and puts the cursor where its changes go. Next Major Version goes from 1.x to 2.0.

Publish

Where the project's packages go once they are built, and what to tell their users.

The Publish page with an apt repository ticked

The Publish page with an apt repository ticked: the lines its users add to apt, and the release notes.

Part What it is
Publishing Names the packages Publish will send: those of the last build, one for each release ticked on the Package page, found in the output folder by their names. Publish (Control+P) sends them; Publishing Places... sets the places up. Publish doesn't build: build first.
For its users For each ticked apt repository or registry, and each release: the command that installs its key, once, and the line users add to /etc/apt/sources.list.d. Copy them to your web page.
Release notes The newest changelog entry as Markdown, to paste into a release page.
Where it goes A box for each place set up in Publishing Places: tick the ones this project's packages go to.