From 5f4bfa8c00fa6e65e623c139b9ceb8d8defc2c5b Mon Sep 17 00:00:00 2001 From: yopito Date: Sat, 13 May 2017 19:42:29 +0200 Subject: [PATCH] kauth: update to 5.36.0. --- .../kauth/patches/crossbuild-support.patch | 21 +++++++++++++++++++ srcpkgs/kauth/template | 6 +++--- 2 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/kauth/patches/crossbuild-support.patch diff --git a/srcpkgs/kauth/patches/crossbuild-support.patch b/srcpkgs/kauth/patches/crossbuild-support.patch new file mode 100644 index 0000000000..d2502fddf3 --- /dev/null +++ b/srcpkgs/kauth/patches/crossbuild-support.patch @@ -0,0 +1,21 @@ +--- KF5AuthConfig.cmake.in.ORIG ++++ KF5AuthConfig.cmake.in +@@ -21,4 +21,8 @@ + else() + include("${CMAKE_CURRENT_LIST_DIR}/KF5AuthToolsTargets.cmake") + endif() ++ if(CMAKE_CROSSCOMPILING) ++ set_target_properties(KF5::kauth-policy-gen PROPERTIES IMPORTED_LOCATION_NONE /usr/lib/libexec/kauth/kauth-policy-gen) ++ set_target_properties(KF5::kauth-policy-gen PROPERTIES IMPORTED_LOCATION /usr/lib/libexec/kauth/kauth-policy-gen) ++ endif() + endif() +--- cmake/KF5AuthMacros.cmake.ORIG ++++ cmake/KF5AuthMacros.cmake +@@ -65,0 +66,4 @@ ++ set(KAUTH_POLICY_GEN_LOCATION KF5::kauth-policy-gen) ++ if(CMAKE_CROSSCOMPILING) ++ get_target_property(KAUTH_POLICY_GEN_LOCATION KF5::kauth-policy-gen LOCATION) ++ endif() +@@ -67 +71 @@ +- COMMAND KF5::kauth-policy-gen ${_input} ${_output} ++ COMMAND ${KAUTH_POLICY_GEN_LOCATION} ${_input} ${_output} diff --git a/srcpkgs/kauth/template b/srcpkgs/kauth/template index 6eb9e47844..6903781c75 100644 --- a/srcpkgs/kauth/template +++ b/srcpkgs/kauth/template @@ -1,7 +1,7 @@ # Template file for 'kauth' pkgname=kauth -version=5.29.0 -revision=2 +version=5.36.0 +revision=1 build_style=cmake hostmakedepends="extra-cmake-modules pkg-config" makedepends="kcoreaddons-devel polkit-qt5-devel" @@ -10,7 +10,7 @@ maintainer="Denis Revin " license="LGPL-2" homepage="https://projects.kde.org/projects/frameworks/kauth" distfiles="http://download.kde.org/stable/frameworks/${version%.*}/${pkgname}-${version}.tar.xz" -checksum=f2c51dfb42196fe5d604883c9f28bda7fd3f40d308144f521f4090a941c2091d +checksum=d3f94113d14f85894f59f234efebfec8c42b4b8a8452460b7f4f2ccc03657d28 if [ -n "$CROSS_BUILD" ]; then hostmakedepends+=" qt5-host-tools qt5-qmake qt5-tools-devel polkit-qt5-devel"