summaryrefslogtreecommitdiff
path: root/libraries/libkvkontakte/libkvkontakte.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libkvkontakte/libkvkontakte.SlackBuild')
-rw-r--r--libraries/libkvkontakte/libkvkontakte.SlackBuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/libraries/libkvkontakte/libkvkontakte.SlackBuild b/libraries/libkvkontakte/libkvkontakte.SlackBuild
index f020b86330..aaf60ad5b9 100644
--- a/libraries/libkvkontakte/libkvkontakte.SlackBuild
+++ b/libraries/libkvkontakte/libkvkontakte.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=libkvkontakte
VERSION=${VERSION:-4.12.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -69,6 +69,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# Patched to work with newer cmake in current
+sed -e "/^cmake_minimum_required/ a cmake_policy(SET CMP0022 OLD)\ncmake_policy(SET CMP0059 OLD)" -i CMakeLists.txt
+
mkdir -p build
cd build
cmake \
@@ -77,6 +80,7 @@ cd build
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DMAN_INSTALL_DIR=/usr/man \
+ -DBUILD_TESTING=OFF \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG