polkit-kde-agent: fix cross
This commit is contained in:
parent
f0c54bd4f3
commit
85f2397dfa
2 changed files with 28 additions and 2 deletions
27
srcpkgs/polkit-kde-agent/patches/cross.patch
Normal file
27
srcpkgs/polkit-kde-agent/patches/cross.patch
Normal file
|
@ -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)
|
|
@ -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 <denis.revin@gmail.com>"
|
||||
|
@ -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"'
|
||||
|
|
Loading…
Reference in a new issue