Skip to content


How to make Debian package

$ dh_make -n -s -e email@domain.com
Maintainer name : Someone
Email-Address   : email@domain.com
Date            : Tue, 20 Dec 2005 10:28:12 +0100
Package Name    : test
Version         : 0.1
License         : blank
Type of Package : Single
Hit  to confirm: 
Done. Please edit the files in the debian/ subdirectory now. You should also
check that the test Makefiles install into $DESTDIR and not in / .

The file tree :

$ find debian/
debian/
debian/changelog
debian/compat
debian/dirs
debian/README.Debian
debian/copyright
debian/control
debian/rules
debian/docs
debian/README

Edit the debian/DEBIAN/control file :

Source: test
Section: devel
Priority: optional
Maintainer: someone 
Build-Depends: debhelper (>= 4.0.0), libapr0-dev, libsvn0-dev
Standards-Version: 3.6.1
 
Package: test
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: report the youngest revision of a svn repository path
 test is a small tool

Notice: there is a white space before the long Description.

Copy your binary executable file to debian/usr/bin
Edit the debian/rules to modify the instructions to be invoked for compilation.

$dpkg-deb --build debian/

rename the generated debian.deb

Posted in 1g1g Linux Desktop App.

0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Some HTML is OK

(required)

(required, but never shared)

or, reply to this post via trackback.