From afd2eef0d129b57d0d2dbc11e4f4fc2f8b8e7e14 Mon Sep 17 00:00:00 2001 From: Luciogi Date: Thu, 18 Apr 2024 09:59:18 +0500 Subject: [PATCH] New package: kf6-kauth-6.1.0 --- common/shlibs | 1 + srcpkgs/kf6-kauth-devel | 1 + srcpkgs/kf6-kauth-tools | 1 + srcpkgs/kf6-kauth/patches/cross.patch | 11 +++++++ srcpkgs/kf6-kauth/template | 41 +++++++++++++++++++++++++++ 5 files changed, 55 insertions(+) create mode 120000 srcpkgs/kf6-kauth-devel create mode 120000 srcpkgs/kf6-kauth-tools create mode 100644 srcpkgs/kf6-kauth/patches/cross.patch create mode 100644 srcpkgs/kf6-kauth/template diff --git a/common/shlibs b/common/shlibs index 8605b2dd187..4db77189271 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1938,6 +1938,7 @@ libQt5XdgIconLoader.so.3 libqtxdg-3.1.0_1 libqwt-qt5.so.6.2 qwt-6.2.0_2 libqwt-qt6.so.6.2 qwt-qt6-6.2.0_2 libKF6Archive.so.6 kf6-karchive-6.0.0_1 +libKF6AuthCore.so.6 kf6-kauth-6.0.0_1 libKF6ConfigCore.so.6 kf6-kconfig-6.0.0_1 libKF6ConfigQml.so.6 kf6-kconfig-6.0.0_1 libKF6ConfigGui.so.6 kf6-kconfig-6.0.0_1 diff --git a/srcpkgs/kf6-kauth-devel b/srcpkgs/kf6-kauth-devel new file mode 120000 index 00000000000..aafa15610d4 --- /dev/null +++ b/srcpkgs/kf6-kauth-devel @@ -0,0 +1 @@ +kf6-kauth \ No newline at end of file diff --git a/srcpkgs/kf6-kauth-tools b/srcpkgs/kf6-kauth-tools new file mode 120000 index 00000000000..aafa15610d4 --- /dev/null +++ b/srcpkgs/kf6-kauth-tools @@ -0,0 +1 @@ +kf6-kauth \ No newline at end of file diff --git a/srcpkgs/kf6-kauth/patches/cross.patch b/srcpkgs/kf6-kauth/patches/cross.patch new file mode 100644 index 00000000000..75f7dd70c36 --- /dev/null +++ b/srcpkgs/kf6-kauth/patches/cross.patch @@ -0,0 +1,11 @@ +--- a/KF6AuthConfig.cmake.in ++++ b/KF6AuthConfig.cmake.in +@@ -34,7 +34,7 @@ include("${CMAKE_CURRENT_LIST_DIR}/KF6Au + + if(NOT "${KAUTH_BACKEND_NAME}" STREQUAL "FAKE") + if(CMAKE_CROSSCOMPILING AND KF6_HOST_TOOLING) +- find_file(KAUTH_TARGETSFILE KF6Auth/KF6AuthToolsTargets.cmake PATHS ${KF6_HOST_TOOLING} ${CMAKE_CURRENT_LIST_DIR} NO_DEFAULT_PATH) ++ find_file(KAUTH_TARGETSFILE KF6Auth/KF6AuthToolsTargets.cmake PATHS ${KF6_HOST_TOOLING} ${CMAKE_CURRENT_LIST_DIR} NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH) + include("${KAUTH_TARGETSFILE}") + else() + include("${CMAKE_CURRENT_LIST_DIR}/KF6AuthToolsTargets.cmake") diff --git a/srcpkgs/kf6-kauth/template b/srcpkgs/kf6-kauth/template new file mode 100644 index 00000000000..965c8fdb83d --- /dev/null +++ b/srcpkgs/kf6-kauth/template @@ -0,0 +1,41 @@ +# Template file for 'kf6-kauth' +pkgname=kf6-kauth +version=6.1.0 +revision=1 +build_style=cmake +configure_args="-DKDE_INSTALL_QMLDIR=lib/qt6/qml + -DKDE_INSTALL_QTPLUGINDIR=lib/qt6/plugins" +hostmakedepends="extra-cmake-modules qt6-tools qt6-base" +makedepends="kf6-kcoreaddons-devel kf6-kwindowsystem-devel polkit-qt6-devel" +checkdepends="dbus" +short_desc="KDE Execute actions as privileged user" +maintainer="John " +license="LGPL-2.1-or-later" +homepage="https://invent.kde.org/frameworks/kauth" +distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname#kf6-}-${version}.tar.xz" +checksum=47e7804020805098cc9ab370b6c539991bb028041faaf5a619ab7cb2b992f08b +subpackages="kf6-kauth-tools kf6-kauth-devel" + +do_check() { + cd build + dbus-run-session ctest +} + +kf6-kauth-tools_package() { + short_desc+=" - tools" + pkg_install() { + vmove usr/libexec + vmove "usr/lib/cmake/KF6Auth/*Tools*" + } +} + +kf6-kauth-devel_package() { + depends="$makedepends kf6-kauth-tools>=${version}_${revision} + ${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/cmake + vmove "usr/lib/*.so" + } +}