Make it build.

ubuntu/cosmic
Simon Quigley 7 years ago
parent 7e18f467ea
commit feae9b72c4

6
debian/control vendored

@ -4,9 +4,11 @@ Priority: optional
Maintainer: Lubuntu Developers <lubuntu-devel@lists.ubuntu.com>
Uploaders: Simon Quigley <tsimonq2@ubuntu.com>,
Julien Lavergne <gilir@ubuntu.com>
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

@ -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}")

@ -0,0 +1 @@
fix-xdg-install-dir.patch

10
debian/rules vendored

@ -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

Loading…
Cancel
Save