From feae9b72c4c634705ba0fba38413b7604d54c4c0 Mon Sep 17 00:00:00 2001 From: Simon Quigley Date: Sat, 10 Feb 2018 20:49:45 -0600 Subject: [PATCH] Make it build. --- debian/control | 6 ++++-- debian/patches/fix-xdg-install-dir.patch | 11 +++++++++++ debian/patches/series | 1 + debian/rules | 10 +++++++++- 4 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 debian/patches/fix-xdg-install-dir.patch create mode 100644 debian/patches/series diff --git a/debian/control b/debian/control index 89a09f2..5ae64c9 100644 --- a/debian/control +++ b/debian/control @@ -4,9 +4,11 @@ Priority: optional Maintainer: Lubuntu Developers Uploaders: Simon Quigley , Julien Lavergne -Build-Depends: debhelper (>= 11), +Build-Depends: cmake, + debhelper (>= 11), libkf5networkmanagerqt-dev (>= 5.24.0), - qtbase5-dev (>= 5.4.0) + qtbase5-dev (>= 5.4.0), + qttools5-dev (>= 5.4.0) Standards-Version: 4.1.3 Homepage: https://github.com/palinek/nm-tray Vcs-Browser: https://git.launchpad.net/~lubuntu-dev/+git/nm-tray-packaging diff --git a/debian/patches/fix-xdg-install-dir.patch b/debian/patches/fix-xdg-install-dir.patch new file mode 100644 index 0000000..4721b72 --- /dev/null +++ b/debian/patches/fix-xdg-install-dir.patch @@ -0,0 +1,11 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -25,7 +25,7 @@ set(TRANSLATION_DIR "${CMAKE_INSTALL_FUL + add_definitions(-DQT_NO_SIGNALS_SLOTS_KEYWORDS "-DTRANSLATION_DIR=\"${TRANSLATION_DIR}\"" "-DNM_TRAY_VERSION=\"${NM_TRAY_VERSION}\"") + if (NOT NM_TRAY_XDG_AUTOSTART_DIR) + #Note: we need the default to be /etc... (not the ${CMAKE_INSTALL_PREFIX}/etc) +- set(NM_TRAY_XDG_AUTOSTART_DIR "/${CMAKE_INSTALL_SYSCONFDIR}/xdg/autostart") ++ set(NM_TRAY_XDG_AUTOSTART_DIR "${CMAKE_INSTALL_SYSCONFDIR}/xdg/autostart") + endif () + + message(STATUS "Translations destination dir: ${TRANSLATION_DIR}") diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..a473cc1 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +fix-xdg-install-dir.patch diff --git a/debian/rules b/debian/rules index ec6bcea..f31a2fd 100755 --- a/debian/rules +++ b/debian/rules @@ -6,4 +6,12 @@ export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed %: - dh $@ + dh $@ -buildsystem cmake + + +override_dh_auto_configure: + dh_auto_configure --\ + -DPULL_TRANSLATIONS=OFF \ + -DUPDATE_TRANSLATIONS=OFF \ + -DDOM_PLUGIN=YES \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo