Create a Debian package

Short description on how to create a debian package.

Build the project:

First thing to do is getting the latest sources and build the project as explaned in this document: Compile Rocrail

Needed utilities

  • fakeroot (sudo apt-get install fakeroot)
  • dpkg-deb

Running the script:

The script is found in the Rocrail/rocrail directory:
An example to invoke the script:
32 bit

cd Rocrail/rocrail
./ ubuntu1310

64 bit

cd Rocrail/rocrail
./ ubuntu1310 amd64


Language issues

If language issues are troubling this script it can be prefixed with:

LANG=C ; ./ ubuntu1404 amd64

The problem could look like:

getopt: onbekende optie '--build'
fakeroot, create a fake root environment.

Where the package is stored:

The new created package is stored in the Rocrail/package directory.

A ls from the Rocrail/rocrail directory shows:

rob@rocrail:~/sf/Rocrail/rocrail$ ls -l ../package/
total 2312
drwxr-xr-x 6 rob rob    4096 2007-09-05 17:31 debian
-rw-r--r-- 1 rob rob 2358620 2007-09-05 17:31 rocrail-0.11.0-svn1485-snapshot-debian4.0-i386.deb

Personal Tools