![]() ![]() If you want to adapt it for a straight-forward Makefile then remove the configure and clean sections from debian/rules. This article is specially for an application that uses autotools. Just type hello as in the example $ hello If there are no issues, after installing the package with dpkg, you can run the application. Verify that the deb package has been created successfully in the parent directory and install it for a test with dpkg:.Create file debian/rules with the following content (use TAB instead of spaces):ĭh -D -m 0755 src/hello $$(pwd)/debian/helloworld/usr/local/bin/hello.Create file debian/control with the following content:ĭepends: $.Define debhelper compatibility level in file debian/compat:.Create a copyright file which can be blank but must exists because it is required by lintian:.In the change log is mandatory to replace PACKAGE with helloworld, VERSION with 0.0.1 UNRELEASED with unstable.Run the following command and follow the on screen instructions to create a changelog:.Enter the directory with the source code and create directory debian in it:.Rename the directory to a name that matches the format package-version:.Download the source code of the application as an archive and unzip it:.Create a directory for the deb package and enter it:.Sudo apt-get install devscripts build-essential lintian The described procedure has been tested on Raspberry Pi 3 using Raspbian Stretch from November 2017. This tutorial provides the exact steps for creating a deb package on Raspberry Pi for a simple application written in the C programming language with autotools. Keywords: apt-get, compat, control, dch, deb, debian, debuild, dpkg, lintian, linux, package, Raspberry Pi, Raspbian, rulesīuilding a Deb Package on Raspberry Pi with Debuild Mobile & Embedded Created: 00:37 Last Modified: 02:53
0 Comments
Leave a Reply. |