From 85f2397dfa6f8e0057a3123ca38698b6109b5875 Mon Sep 17 00:00:00 2001 From: John Date: Mon, 27 Aug 2018 15:10:17 +0200 Subject: [PATCH] polkit-kde-agent: fix cross --- srcpkgs/polkit-kde-agent/patches/cross.patch | 27 ++++++++++++++++++++ srcpkgs/polkit-kde-agent/template | 3 +-- 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/polkit-kde-agent/patches/cross.patch diff --git a/srcpkgs/polkit-kde-agent/patches/cross.patch b/srcpkgs/polkit-kde-agent/patches/cross.patch new file mode 100644 index 00000000000..1ae7572d3b8 --- /dev/null +++ b/srcpkgs/polkit-kde-agent/patches/cross.patch @@ -0,0 +1,27 @@ +--- CMakeLists.txt 2018-07-31 15:01:17.000000000 +0200 ++++ - 2018-08-27 14:42:14.094150559 +0200 +@@ -49,6 +49,12 @@ + + find_package(PolkitQt5-1 REQUIRED 0.103.0) + ++if (NOT IS_ABSOLUTE "${POLKITQT-1_INCLUDE_DIR}") ++ set(POLKITQT-1_INCLUDE_DIR "${POLKITQT-1_INSTALL_DIR}/${POLKITQT-1_INCLUDE_DIR}") ++ set(POLKITQT-1_AGENT_LIBRARY "${POLKITQT-1_INSTALL_DIR}/${POLKITQT-1_AGENT_LIBRARY}") ++ set(POLKITQT-1_CORE_LIBRARY "${POLKITQT-1_INSTALL_DIR}/${POLKITQT-1_CORE_LIBRARY}") ++endif() ++ + include_directories( + ${POLKITQT-1_INCLUDE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} +--- CMakeLists.txt 2018-08-27 14:58:54.560731243 +0200 ++++ - 2018-08-27 15:02:03.578280015 +0200 +@@ -82,7 +81,8 @@ + KF5::I18n + KF5::Crash + KF5::IconThemes +- ${POLKITQT-1_LIBRARIES} ++ ${POLKITQT-1_AGENT_LIBRARY} ++ ${POLKITQT-1_CORE_LIBRARY} + ) + + configure_file(polkit-kde-authentication-agent-1.desktop.cmake ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop) diff --git a/srcpkgs/polkit-kde-agent/template b/srcpkgs/polkit-kde-agent/template index ecb1ceea202..c61a924a98c 100644 --- a/srcpkgs/polkit-kde-agent/template +++ b/srcpkgs/polkit-kde-agent/template @@ -5,7 +5,7 @@ revision=1 build_style=cmake configure_args="-DBUILD_TESTING=OFF" wrksrc="${pkgname}-1-${version}" -hostmakedepends="extra-cmake-modules qt5-qmake qt5-host-tools" +hostmakedepends="extra-cmake-modules qt5-qmake qt5-host-tools polkit-qt5-devel" makedepends="kcrash-devel kdbusaddons-devel kiconthemes-devel kdoctools-devel" short_desc="KDE PolKit auth agent" maintainer="Denis Revin " @@ -13,4 +13,3 @@ license="GPL-2.0-or-later" homepage="https://projects.kde.org/projects/plasma/polkit-kde-agent" distfiles="${KDE_SITE}/plasma/${version}/${pkgname}-1-${version}.tar.xz" checksum=6620c171e73c612a7a12f955552dd32c3d550cfce3427d1eb6ff31ced54df271 -nocross='The imported target "PolkitQt5-1::Core" references the file "/usr/lib/libpolkit-qt5-core-1.so.1.112.0"'