summaryrefslogtreecommitdiffstats
path: root/packaging/deb/debian.rules
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2019-01-03 15:03:39 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2019-01-03 16:48:48 +0100
commit680af25d7b89e734b77ddad0f4e2d2a4d1bc8826 (patch)
tree53a3377e1c681678164e8e276c41ddf7b019d638 /packaging/deb/debian.rules
parent565e5a7fac5db9a35fd0b2cb8e12f1bdf4772821 (diff)
Adding packaging files
Add necessary files to build native packages for AGL supported linux distributions Bug-AGL: SPEC-2097 Change-Id: Ife6d1ec8a05f40e0bd70e741859133003716b37a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'packaging/deb/debian.rules')
-rw-r--r--packaging/deb/debian.rules17
1 files changed, 17 insertions, 0 deletions
diff --git a/packaging/deb/debian.rules b/packaging/deb/debian.rules
new file mode 100644
index 0000000..c4b4d59
--- /dev/null
+++ b/packaging/deb/debian.rules
@@ -0,0 +1,17 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+export VERSION=$(shell grep -E "^Version" ../*dsc | sed -r 's/^.*: (.*)-.*/\1/')
+
+%:
+ bash /etc/profile.d/AGL-app-framework-binder.sh
+ dh $@
+
+override_dh_auto_configure:
+ dh_auto_configure -- -DVERSION=${VERSION} -DAFB_HELPERS_QT=ON -DCMAKE_INSTALL_PREFIX=/opt/AGL -DCMAKE_INSTALL_LIBDIR:PATH=lib/${DEB_HOST_MULTIARCH}
+
+override_dh_auto_install:
+ dh_auto_install --destdir=/usr/src/packages/BUILD/debian/tmp
+
+override_dh_auto_test: