aboutsummaryrefslogtreecommitdiff
path: root/docs/building.md
diff options
context:
space:
mode:
authorBrendan Le Foll <brendan.le.foll@intel.com>2015-07-31 15:01:03 +0100
committerBrendan Le Foll <brendan.le.foll@intel.com>2015-07-31 15:01:34 +0100
commitef28607ceadb9868215d703bc8594c5270dca75e (patch)
tree07779ddcd3b47e2014ebd18466accf9dab40aa53 /docs/building.md
parent2c4389c2a163831e3c8034b65c3f49061c892d1a (diff)
building.md: Add instructions for cpack
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Diffstat (limited to 'docs/building.md')
-rw-r--r--docs/building.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/building.md b/docs/building.md
index 9386504..1d57752 100644
--- a/docs/building.md
+++ b/docs/building.md
@@ -131,3 +131,20 @@ To run, make sure libmraajava.so is in LD_LIBRARY_PATH
~~~~~~~~~~~~~{.sh}
jave -cp $DIR_WHERE_YOU_INSTALLED_MRAA/mraa.jar:. Example
~~~~~~~~~~~~~
+
+## Building an IPK/RPM package using cpack
+
+You can get cpack to generate an IPK or RPM package fairly easily if you have
+the correct packaging tools
+
+~~~~~~~~~~~~~{.sh}
+cmake -DIPK=ON -DCMAKE_INSTAL_PREFIX=/usr ..
+make package
+~~~~~~~~~~~~~
+
+To use RPM simply enable the RPM option. You'll need rpmbuild installed on your
+build machine.
+
+~~~~~~~~~~~~~{.sh}
+cmake -DRPM=ON -DCMAKE_INSTAL_PREFIX=/usr ..
+~~~~~~~~~~~~~