1 = How to build the Debian package of `psensor` from GIT
5 This document is explaining step by step how to build the Debian
6 package of psensor directly from the GIT repository.
8 == Build the Debian package
10 Install `git-buildpackage`:
13 sudo apt-get install git-buildpackage
16 Install all build dependencies (you can get it from
17 the variable `Build-depends` of the file `debian/control`):
20 sudo apt-get install ...
23 Checkout the source of `psensor` and its packaging:
26 git clone https://gitlab.com/jeanfi/psensor-pkg-debian.git
29 Build the Debian package:
32 cd psensor-pkg-debian.git
36 == Build to another Debian distribution
38 `pbuilder` can be used to build `psensor` to another Debian
39 distribution than the one used by the build machine.
41 Installation of `pbuilder`:
44 apt-get install pbuilder qemu-user-static
47 Create the distribution image:
50 git-pbuilder create --config raspbian.pbuilderrc
53 The variable `DISTRIBUTION` in the configuration file is specifying
54 the distribution target of the build. It might be useful for
55 example to check the compilation on the 'testing' flavor of `Debian`.
57 See a configuration example for `Raspbian`:
58 link:raspbian.pbuilderrc[raspbian].
66 Checkout the source of `psensor` and its packaging:
69 git clone https://gitlab.com/jeanfi/psensor-pkg-debian.git
72 And finally, build the `Debian` package:
75 git-buildpackage --git-pbuilder
80 * https://wiki.debian.org/git-pbuilder
81 * https://www.debian.org/doc/manuals/maint-guide/build.en.html