author | Antonio Rojas
<arojas@archlinux.org> 2022-05-14 16:29:05 UTC |
committer | Antonio Rojas
<arojas@archlinux.org> 2022-05-14 16:29:05 UTC |
parent | 8e3fb19a5ac2dac37cf2dcfdc4530021d9e29d5c |
PKGBUILD | +9 | -3 |
fix-pri.patch | +12 | -0 |
diff --git a/PKGBUILD b/PKGBUILD index 5e78338..d5fbe55 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -4,7 +4,7 @@ pkgname=kwayland pkgver=5.94.0 -pkgrel=1 +pkgrel=2 pkgdesc='Qt-style Client and Server library wrapper for the Wayland libraries' arch=(x86_64) url='https://www.kde.org' @@ -12,12 +12,18 @@ license=(LGPL) depends=(qt5-wayland) makedepends=(extra-cmake-modules doxygen qt5-tools qt5-doc wayland-protocols plasma-wayland-protocols) groups=(kf5) -source=(https://download.kde.org/stable/frameworks/${pkgver%.*}/$pkgname-$pkgver.tar.xz{,.sig}) +source=(https://download.kde.org/stable/frameworks/${pkgver%.*}/$pkgname-$pkgver.tar.xz{,.sig} + fix-pri.patch) sha256sums=('b2a4d8e1b4d81ce798c991cfb34210ba095f6406a37f4714ae3ab64abaca2636' - 'SKIP') + 'SKIP' + 'ffb0188e44140a015b2a66a3d5ef230c1cada4cb640f80d9e0522855376d8e53') validpgpkeys=(53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB) # David Faure <faure@kde.org> options=(debug) +prepare() { + patch -d $pkgname-$pkgver -p1 < fix-pri.patch # Fix include path in the pri file +} + build() { cmake -B build -S $pkgname-$pkgver \ -DCMAKE_INSTALL_LIBEXECDIR=lib \ diff --git a/fix-pri.patch b/fix-pri.patch new file mode 100644 index 0000000..52318ab --- /dev/null +++ b/fix-pri.patch @@ -0,0 +1,12 @@ +diff --git a/src/client/CMakeLists.txt b/src/client/CMakeLists.txt +index 33d8c7e..ef6df30 100644 +--- a/src/client/CMakeLists.txt ++++ b/src/client/CMakeLists.txt +@@ -332,6 +332,6 @@ set(KWaylandClient_APIDOX_SRCS ${CLIENT_LIB_HEADERS} PARENT_SCOPE) + set(KWaylandClient_APIDOX_BUILD_INCLUDE_DIRS ${CMAKE_CURRENT_BINARY_DIR} PARENT_SCOPE) + + include(ECMGeneratePriFile) +-ecm_generate_pri_file(BASE_NAME KWaylandClient LIB_NAME KF5WaylandClient DEPS "core" FILENAME_VAR PRI_FILENAME INCLUDE_INSTALL_DIR ${KDE_INSTALL_INCLUDEDIR_KF}) ++ecm_generate_pri_file(BASE_NAME KWaylandClient LIB_NAME KF5WaylandClient DEPS "core" FILENAME_VAR PRI_FILENAME INCLUDE_INSTALL_DIR ${KDE_INSTALL_INCLUDEDIR_KF}/KWayland) + install(FILES ${PRI_FILENAME} + DESTINATION ${ECM_MKSPECS_INSTALL_DIR})