Shell script debian package
pack minimal shell script to debian
package using dpkg-buildpackage
my-tool |
---|
| #!/bin/sh
echo "hello my-tool"
|
debian folder
Using dpkg-buildpackage
debian folder must contain few files:
changelog
dch
command create and update changelog file
| dch --create -v 0.0.1 --package my-tool "v 0.0.1"
dch -v 0.0.1 "simple script"
|
Note
Using dch
command we update the version
my-tool (0.0.2) UNRELEASED; urgency=medium
This version use to set the debian version
| dch -v 0.0.2 "simple script ver 2"
|
changelog
changelog |
---|
| my-tool (0.0.2) UNRELEASED; urgency=medium
* version 0.0.1
* simple script ver 2
-- user <user@lap> Tue, 29 Apr 2025 21:14:15 +0300
|
control
| Source: my-tool
Section: utils
Priority: optional
Maintainer: Your Name <you@example.com>
Build-Depends: debhelper-compat (= 13)
Standards-Version: 4.6.2
Package: my-tool
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: My Tool – brief description
|
rules
| #!/usr/bin/make -f
%:
dh $@
|
build
| dpkg-buildpackage -us -uc
|