Munipack's logo

DEB binary package

This page decribes how to prepare binary package for DEB-based distributions (Ubuntu, Mint, Debian), by ordinary way. Building of a package follows basic rules in New Maintainers' Guide.

It is supposed to run commands introduced by # as root

# id
uid=0(root) ..

and ones denoted by $ as an ordinary user:

$ id
uid=12345(user) ...

Prerequisites

Following tools are required for the building:

If wxWidgets (wxGTK) in version above 3.0 is not included in your distribution, one can be installed by way described on CodeLite page wxWidgets 3.0 Packages and Repositories.

Other tools could be installed by the command (valid for Debian, modify by your needs):

# apt-get install gfortran g++ libwxgtk3.0-dev libcfitsio3-dev debhelper

Build Of Stable Version

Download latest Munipack: ftp://munipack.physics.muni.cz/pub/munipack/munipack-0.5.7.tar.gz

Prepare package:

$ tar zxf munipack-0.5.7.tar.gz
$ cd munipack-0.5.7/
$ dpkg-buildpackage -us -uc

When the build finished sucessfully, the packages munipack-*.deb are aready to install. Their installation is strightforward:

# dpkg -i munipack-core-*.deb munipack-gui-*.deb munipack-cli-*.deb munipack-doc-*.deb

Build Of Development Version

Install Mercurial additionaly:

# apt-get install mercurial

Obtain latest source code from Mercurial and update their own version (set as 0.X.Y+my001):

$ export VER=0.X.Y+my001
$ hg clone http://munipack.physics.muni.cz/hg/munipack munipack-${VER}/
$ cd munipack-${VER}/
$ ./bootstrap
$ cd ..
$ tar zcf munipack-${VER}.tar.gz munipack-${VER}/ --exclude ".hg*"

and follow instructions in previous sections.

How to Build Debian or Ubuntu Archive Repository

This section illustrates how a Munipack own repository can be created.

$ hg clone http://munipack.physics.muni.cz/hg/munipack munipack-0.X.Y/
$ cd munipack-0.5.5+hg1391/
..
update version in configure.ac and debian/changelog
..
$ ./bootstrap
$ dpkg-buildpackage -us -uc
..
# move packages to distribution directory
..
dpkg-scanpackages -m wheezy > wheezy/Packages