diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2018-12-28 15:15:47 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2019-01-03 15:59:15 +0100 |
commit | a1976ff1b2bccc8689182505828f7e3814d0d21b (patch) | |
tree | d1c3dabeb343f4709f789b967890f413f91eb685 /packaging/deb/debian.rules | |
parent | f430407fd34ec2897359245a6e1ff951e5da5bc6 (diff) |
Adding packaging files
Adding the necessary packaging files for the AGL supported
distributions. OpenSUSE, Fedora, Ubuntu and Debian.
Bug-AGL: SPEC-2097
Change-Id: I81fe9b614366c2d9f3337f18082ed221b8931e6a
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'packaging/deb/debian.rules')
-rw-r--r-- | packaging/deb/debian.rules | 17 |
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: |