git » kwayland.git » commit 5ce020d

install KF5WaylandServer

author Felix Yan
2015-01-22 17:03:26 UTC
committer Felix Yan
2015-01-22 17:03:26 UTC
parent e342186ccb8a6e3a84a4acb9d798b1d95a1046e2

install KF5WaylandServer

PKGBUILD +9 -3
install-server.patch +47 -0

diff --git a/PKGBUILD b/PKGBUILD
index 428207a..58f2e0e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,18 +3,24 @@
 
 pkgname=kwayland
 pkgver=5.1.2
-pkgrel=1
+pkgrel=2
 pkgdesc='Qt-style Client and Server library wrapper for the Wayland libraries'
 arch=('i686' 'x86_64')
 url='http://www.kde.org'
 license=('LGPL')
 depends=('qt5-base')
 makedepends=('extra-cmake-modules')
-source=("http://download.kde.org/stable/plasma/${pkgver}/kwayland-$pkgver.tar.xz")
-md5sums=('49a5563621a4d6bd6bfd670903ea34bb')
+source=("http://download.kde.org/stable/plasma/${pkgver}/kwayland-$pkgver.tar.xz"
+        install-server.patch)
+md5sums=('49a5563621a4d6bd6bfd670903ea34bb'
+         'a2d79a0467a0ca8a208753f88f927511')
 
 prepare() {
   mkdir -p build
+
+  cd ${pkgname}-${pkgver}
+  echo "" >> src/server/CMakeLists.txt
+  patch -R -p1 -i ../install-server.patch
 }
 
 build() {
diff --git a/install-server.patch b/install-server.patch
new file mode 100644
index 0000000..9006df0
--- /dev/null
+++ b/install-server.patch
@@ -0,0 +1,47 @@
+From: Martin Gräßlin <mgraesslin@kde.org>
+Date: Fri, 19 Sep 2014 07:46:55 +0000
+Subject: Do not install Server library
+X-Git-Tag: v5.0.95
+X-Git-Url: http://quickgit.kde.org/?p=kwayland.git&a=commitdiff&h=789c6729532d83e7677543e04230d9bf6e74d84f
+---
+Do not install Server library
+
+It's not yet used by KWin, so we don't need to expose it yet.
+This gives us more time to fine tune the API.
+---
+
+
+--- a/src/server/CMakeLists.txt
++++ b/src/server/CMakeLists.txt
+@@ -30,17 +30,17 @@
+                                                  EXPORT_NAME WaylandServer
+ )
+ 
+-install(TARGETS KF5WaylandServer EXPORT KF5WaylandTargets ${KF5_INSTALL_TARGETS_DEFAULT_ARGS})
++# install(TARGETS KF5WaylandServer EXPORT KF5WaylandTargets ${KF5_INSTALL_TARGETS_DEFAULT_ARGS})
++#
++# install(FILES
++#   ${CMAKE_CURRENT_BINARY_DIR}/kwaylandserver_export.h
++#   buffer_interface.h
++#   compositor_interface.h
++#   display.h
++#   output_interface.h
++#   seat_interface.h
++#   shell_interface.h
++#   surface_interface.h
++#   DESTINATION ${KF5_INCLUDE_INSTALL_DIR}/KWayland/Server COMPONENT Devel
++# )
+ 
+-install(FILES
+-  ${CMAKE_CURRENT_BINARY_DIR}/kwaylandserver_export.h
+-  buffer_interface.h
+-  compositor_interface.h
+-  display.h
+-  output_interface.h
+-  seat_interface.h
+-  shell_interface.h
+-  surface_interface.h
+-  DESTINATION ${KF5_INCLUDE_INSTALL_DIR}/KWayland/Server COMPONENT Devel
+-)
+-
+