[arch-commits] Commit in libkvkontakte/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Sun Dec 6 23:58:07 UTC 2015


    Date: Monday, December 7, 2015 @ 00:58:05
  Author: arojas
Revision: 253102

Fix build with recent cmake

Modified:
  libkvkontakte/trunk/PKGBUILD

----------+
 PKGBUILD |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-12-06 23:55:21 UTC (rev 253101)
+++ PKGBUILD	2015-12-06 23:58:05 UTC (rev 253102)
@@ -16,6 +16,10 @@
 
 prepare() {
   mkdir -p build 
+
+# Fix build with recent cmake
+  cd $pkgname-$pkgver
+  sed -e "/^cmake_minimum_required/ a cmake_policy(SET CMP0022 OLD)\ncmake_policy(SET CMP0059 OLD)" -i CMakeLists.txt
 }
 
 build() {
@@ -22,7 +26,8 @@
   cd build
   cmake ../$pkgname-$pkgver \
     -DCMAKE_BUILD_TYPE=Release \
-    -DCMAKE_INSTALL_PREFIX=/usr
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DBUILD_TESTING=OFF
   make
 }
 



More information about the arch-commits mailing list