From 61a2fce3823f3f5dccd6f47843b1ef224f5dd513 Mon Sep 17 00:00:00 2001 From: Frode Haugsgjerd Date: Tue, 16 Apr 2024 03:22:26 +0200 Subject: [PATCH] Debian package build instructions --- README.md | 46 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c9f5c80..9b3d1d1 100644 --- a/README.md +++ b/README.md @@ -30,4 +30,48 @@ debian-keyring dns-root-data firmware-linux firmware-linux-nonfree -``` \ No newline at end of file +``` + +## Building a Debian Package + +To build a Debian package of this project, follow these steps: + +1. Install the necessary build dependencies: + + ```bash + sudo apt-get install devscripts debhelper + ``` + +2. Navigate to your project directory: + + ```bash + cd /path/to/your/project + ``` + +3. Create a source tarball in the parent directory of your project: + + ```bash + tar czvf ../deblint_0.0.0.orig.tar.gz . + ``` + + Replace `0.0.0` with your actual package version. + +4. Build the Debian package: + + ```bash + debuild -us -uc + ``` + + This command will create a `.deb` file in the parent directory of your project. + +5. To install the package, use the `dpkg` command: + + ```bash + sudo dpkg -i ../your-package-name.deb + ``` + +* To increment the version of your package, run: + + ```bash + dch -i + ``` \ No newline at end of file