aboutsummaryrefslogtreecommitdiffstats
path: root/conf.d/packaging/deb
diff options
context:
space:
mode:
Diffstat (limited to 'conf.d/packaging/deb')
-rw-r--r--conf.d/packaging/deb/debian.rules3
1 files changed, 2 insertions, 1 deletions
diff --git a/conf.d/packaging/deb/debian.rules b/conf.d/packaging/deb/debian.rules
index 4637103..8209cd9 100644
--- a/conf.d/packaging/deb/debian.rules
+++ b/conf.d/packaging/deb/debian.rules
@@ -2,13 +2,14 @@
# -*- 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 -- -DCMAKE_INSTALL_PREFIX=/opt/AGL -DCMAKE_INSTALL_LIBDIR:PATH=lib/${DEB_HOST_MULTIARCH}
+ dh_auto_configure -- -DVERSION=${VERSION} -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