-
Notifications
You must be signed in to change notification settings - Fork 0
How To Create Debian Package
This page outlines the procedure for making debian packages mainly targeted for Ubuntu and Debian.
This command will install most of the needed packages:
sudo apt-get install debhelper quilt cmake liblua5.1-0-dev libsdl1.2-dev libsdl-mixer1.2-dev timidity imagemagick liblua5.1-filesystem-dev liblua5.1-lpeg-dev libagg-dev libfreetype6-dev
For in-game movies, you also need to install the ffmpeg libraries from http://www.deb-multimedia.org/ (Debian) or https://launchpad.net/~jon-severinsson/+archive/ffmpeg (Ubuntu). Enable the relevant repository and run:
sudo apt-get install libavcodec-dev libavformat-dev libavdevice-dev libavutil-dev libswscale-dev libpostproc-dev libswresample-dev
The source for creating Debian/Ubuntu packages is available here: http://debian.crustynet.org.uk/corsix-th/
You need the corsix-th_N.NN-N.dsc, corsix-th_N.NN-N.debian.tar.gz and corsix-th_N.NN.orig.tar.gz files. Download these and run the following to extract the files:
dpkg-source -x corsix-th_N.NN-N.dsc
Alternatively, if you want to build using a different version of the source, you may extract the debian packaging files from the debian.tar.gz file and apply the patches manually:
tar xzvf corsix-th_N.NN-N.debian.tar.gz quilt push -a
However, please bear in mind that the packaging has only been tested with the version of the source accompanying the packaging files.
To build the .deb packages, from the source directory run:
dpkg-buildpackage -us -uc
Once done, it will place .deb files in the parent directory.
You can of course use any other debian package build tool (sbuild / pbuilder) if you prefer.
Back to the Home page