Date: Thursday, April 20, 2023 @ 16:07:33 Author: arojas Revision: 474758
upgpkg: kpimtextedit 23.04.0-2: Install QCH cmake file to backwards compatible path Added: kpimtextedit/trunk/fix-qch-install.patch Modified: kpimtextedit/trunk/PKGBUILD -----------------------+ PKGBUILD | 12 +++++++++--- fix-qch-install.patch | 17 +++++++++++++++++ 2 files changed, 26 insertions(+), 3 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-04-20 15:56:46 UTC (rev 474757) +++ PKGBUILD 2023-04-20 16:07:33 UTC (rev 474758) @@ -2,7 +2,7 @@ pkgname=kpimtextedit pkgver=23.04.0 -pkgrel=1 +pkgrel=2 pkgdesc='A textedit with PIM-specific features' arch=(x86_64) url='https://kontact.kde.org' @@ -9,13 +9,19 @@ license=(LGPL) depends=(kio syntax-highlighting) makedepends=(extra-cmake-modules qt5-tools doxygen) -source=(https://download.kde.org/stable/release-service/$pkgver/src/$pkgname-$pkgver.tar.xz{,.sig}) +source=(https://download.kde.org/stable/release-service/$pkgver/src/$pkgname-$pkgver.tar.xz{,.sig} + fix-qch-install.patch) sha256sums=('cc6819004d5e73aae9b3b8f0679b79cf49f1d3b9c9f0451e78bd1ef809319cf1' - 'SKIP') + 'SKIP' + 'c89bbab9780e9a35db2de527a846066711e7398bd0fe4797d303f09c6acea7ad') validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7 # Albert Astals Cid <[email protected]> F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87 # Christoph Feck <[email protected]> D81C0CB38EB725EF6691C385BB463350D6EF31EF) # Heiko Becker <[email protected]> +prepare() { + patch -d $pkgname-$pkgver -p1 < fix-qch-install.patch # Install QCH targets to backwards-compatible path +} + build() { cmake -B build -S $pkgname-$pkgver \ -DBUILD_TESTING=OFF \ Added: fix-qch-install.patch =================================================================== --- fix-qch-install.patch (rev 0) +++ fix-qch-install.patch 2023-04-20 16:07:33 UTC (rev 474758) @@ -0,0 +1,17 @@ +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index 255c9f1..10f71cc 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -411,5 +411,12 @@ install(EXPORT KPim${KF_MAJOR_VERSION}TextEditTargets + FILE KPim${KF_MAJOR_VERSION}TextEditTargets.cmake + NAMESPACE KF5:: + ) ++if (BUILD_QCH) ++ install(FILES ++ "${CMAKE_CURRENT_BINARY_DIR}/KPim${KF_MAJOR_VERSION}TextEditQchTargets.cmake" ++ DESTINATION "${CMAKECONFIG_INSTALL_DIR_KF5}" ++ COMPONENT Devel ++ ) ++endif() + endif() + endif()
