| 1 |
HOW TO BUILD A LINUX DEB PACKAGE FOR GENERAL RELEASE |
| 2 |
==================================================== |
| 3 |
|
| 4 |
INSTALL PACKAGE DEVELOPMENT TOOLS |
| 5 |
================================= |
| 6 |
Ensure that you have the necessary tools installed: |
| 7 |
|
| 8 |
sudo apt-get install build-essential |
| 9 |
sudo apt-get install fakeroot |
| 10 |
sudo apt-get install devscripts |
| 11 |
|
| 12 |
INSTALL DEPENDENCIES |
| 13 |
==================== |
| 14 |
Check that SDL 2 and it's development files are present. They are not |
| 15 |
installed as standard in all Linux distributions. |
| 16 |
|
| 17 |
sudo apt-get install libsdl2-2.0 |
| 18 |
sudo apt-get install libsdl2-dev |
| 19 |
|
| 20 |
OBTAIN SOURCE CODE |
| 21 |
================== |
| 22 |
Download the latest release of the source code from the Github Releases Area |
| 23 |
(https://github.com/atari800/atari800/releases). Look for a file with a name |
| 24 |
like 'atari800-6.0.0-src.tgz', where 6.0.0 denotes the version. |
| 25 |
|
| 26 |
Unzip the source code. The contents will go into a directory called |
| 27 |
'atari800-6.0.0' or similar, which will be referred to in these notes as the |
| 28 |
'atari800' directory. |
| 29 |
|
| 30 |
Do not obtain the source code by cloning the current atari800 repository |
| 31 |
because this may have been modified since the last release, and may contain |
| 32 |
partially developed and untested code. |
| 33 |
|
| 34 |
UPDATE DEBIAN CHANGELOG |
| 35 |
======================= |
| 36 |
Update file 'atari800/debian/changelog'. You can simply edit this manually, |
| 37 |
but the system is fussy about the exact format, location of spaces etc., so it |
| 38 |
is handy to use the debchange command as follows. |
| 39 |
|
| 40 |
Open a terminal on the atari800 directory. |
| 41 |
|
| 42 |
debchange |
| 43 |
|
| 44 |
Select an editor from the presented menu. Debchange guesses a new version |
| 45 |
number and other details and enters some new lines into the log for you. The |
| 46 |
top of the file should look something like this: |
| 47 |
|
| 48 |
atari800 (5.0.0ubuntu1) UNRELEASED; urgency=medium |
| 49 |
|
| 50 |
* |
| 51 |
|
| 52 |
-- Cliff <cliff@Inspiron> Sat, 30 Dec 2023 17:03:52 +0000 |
| 53 |
|
| 54 |
Edit these lines as appropriate. For example: |
| 55 |
|
| 56 |
atari800 (6.0.0) unstable; urgency=medium |
| 57 |
|
| 58 |
* New upstream version 6.0.0 |
| 59 |
* SDL2 support |
| 60 |
* Packages released via GitHub, Jun 2026: |
| 61 |
* https://github.com/atari800/atari800/releases |
| 62 |
|
| 63 |
-- Antonin Kral <[email protected]> Fri, 19 Jun 2026 17:03:52 +0000 |
| 64 |
|
| 65 |
The version number '6.0.0' will be used as part of the name of the package |
| 66 |
you are going to build. |
| 67 |
|
| 68 |
Label the release 'unstable'. This does not mean it is actually unstable, just |
| 69 |
that no tests have been performed at this stage to prove otherwise. |
| 70 |
|
| 71 |
You may add as many comments as you wish on lines beginning with two spaces |
| 72 |
and a '*'. |
| 73 |
|
| 74 |
Set urgency to 'low', or 'medium' for major updates. |
| 75 |
|
| 76 |
You should replace your default user information with the name and email |
| 77 |
address of the current package maintainer, as identified in |
| 78 |
debian/README.debian. |
| 79 |
|
| 80 |
ADJUST CONFIGURATION OPTIONS IN THE DEBIAN RULES FILE |
| 81 |
===================================================== |
| 82 |
The debian rules file 'atari800/debian/rules' contains the following command |
| 83 |
(split over two lines): |
| 84 |
|
| 85 |
./configure \ |
| 86 |
--with-video=sdl2 --with-sound=sdl2 |
| 87 |
|
| 88 |
BUILD THE PACKAGE |
| 89 |
================= |
| 90 |
|
| 91 |
dpkg-buildpackage -B -uc |
| 92 |
|
| 93 |
This configures and compiles atari800 and builds the package. |
| 94 |
|
| 95 |
Look out for warning and error messages. Warnings can usually be ignored, |
| 96 |
but you will have to investigate and correct any errors. |
| 97 |
|
| 98 |
If you receive messages about missing dependencies, install them and run |
| 99 |
the command again. For example if libsdl2-2.0 is missing, install it with |
| 100 |
the command: |
| 101 |
|
| 102 |
sudo apt-get install libsdl2-2.0 |
| 103 |
|
| 104 |
The dpkg-buildpackage command creates three files and places them in the |
| 105 |
parent of the atari800 directory. They will have names like these: |
| 106 |
|
| 107 |
atari800_6.0.0_amd64.buildinfo - Checksums and a list of dependencies |
| 108 |
in the .deb file. |
| 109 |
atari800_6.0.0_amd64.changes - Changelog update and checksums for |
| 110 |
the .deb and .buildinfo files. |
| 111 |
atari800_6.0.0_amd64.deb - The .deb package file for release. |
| 112 |
|
| 113 |
'amd64' indicates the architecture of the machine that the build was done on. |
| 114 |
|
| 115 |
If you wish to create packages for several different architectures, you should |
| 116 |
copy the atari800 directory to machines with the appropriate architectures and repeat |
| 117 |
the build process there. |
| 118 |
|
| 119 |
INSTALL |
| 120 |
======= |
| 121 |
Some Linux distributions allow you to install packages via the GUI, e.g.: |
| 122 |
|
| 123 |
<Double Left Click> on the .deb file to install. |
| 124 |
|
| 125 |
or |
| 126 |
|
| 127 |
<Right Click> and select the appropriate menu item, <Package Install> or similar. |
| 128 |
|
| 129 |
If these methods don't work on your distribution, use the command: |
| 130 |
|
| 131 |
sudo dpkg -i atari800_6.0.0_amd64.deb |
| 132 |
|
| 133 |
TEST |
| 134 |
==== |
| 135 |
Check that the atari800 command runs the emulator successfully: |
| 136 |
|
| 137 |
atari800 |
| 138 |
|
| 139 |
The command should also work with options, for example: |
| 140 |
|
| 141 |
atari800 -v |
| 142 |
atari800 -help |
| 143 |
man atari800 |
| 144 |
|
| 145 |
UNINSTALL |
| 146 |
========= |
| 147 |
You can unistall the package with the Software Manager, or the command: |
| 148 |
|
| 149 |
sudo dpkg --remove atari800 |
| 150 |
|
| 151 |
This removes the command and documentation, but leaves the configuration file |
| 152 |
.atari800.cfg in place. |
| 153 |
|
| 154 |
ISSUE A PULL REQUEST TO UPDATE THE DEBIAN CHANGELOG IF THIS HAS NOT ALREADY BEEN DONE |
| 155 |
===================================================================================== |
| 156 |
Enter the new lines you created in atari800/debian/changelog into the master |
| 157 |
of this file on Git. This is just to keep the record intact. |
| 158 |
|
| 159 |
DISTRIBUTION VIA THE GITHUB RELEASES AREA |
| 160 |
========================================= |
| 161 |
Send the three files created (.buildinfo, .changes and .deb) to the owner of |
| 162 |
the Git repository (https://github.com/atari800/atari800). |
| 163 |
|
| 164 |
The owner will post the .deb file to the releases area |
| 165 |
(https://github.com/atari800/atari800/releases) for download by users. |
| 166 |
|
| 167 |
This is a shortcut method. It is quicker than distribution via the Debian |
| 168 |
Project. |
| 169 |
|
| 170 |
When a new release is announced on the Atari800 mailing list, anyone in the |
| 171 |
community can follow the procedure described in this document and make it |
| 172 |
available to users without delay. |
| 173 |
|
| 174 |
DISTRIBUTION VIA THE DEBIAN PROJECT |
| 175 |
=================================== |
| 176 |
Formal distribution via the Debian Project can only be performed by the |
| 177 |
package maintainer, a listed Debian member. The procedure is rigourous in |
| 178 |
order to ensure the quality of the software. Depending on how much free |
| 179 |
time the maintainer has it may take many months to complete. |
| 180 |
|
| 181 |
Packages distributed in this manner become available in official repositories. |
| 182 |
Users may download and install them using the apt-get command or a software |
| 183 |
manager. |
| 184 |
|
| 185 |
|
| 186 |
|
| 187 |
|
| 188 |
|
| 189 |
|
| 190 |
|
| 191 |
|
| 192 |
|