aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'libraries')
-rw-r--r--libraries/platform/platform-2.0.1-install.patch10
-rw-r--r--libraries/platform/platform.SlackBuild13
-rw-r--r--libraries/platform/platform.info6
3 files changed, 21 insertions, 8 deletions
diff --git a/libraries/platform/platform-2.0.1-install.patch b/libraries/platform/platform-2.0.1-install.patch
new file mode 100644
index 0000000000000..0c6f8f69e5c8d
--- /dev/null
+++ b/libraries/platform/platform-2.0.1-install.patch
@@ -0,0 +1,10 @@
+diff -up ./CMakeLists.txt.orig ./CMakeLists.txt
+--- ./CMakeLists.txt.orig 2016-01-19 20:49:33.000000000 +0100
++++ ./CMakeLists.txt 2016-02-05 13:30:27.456442363 +0100
+@@ -81,5 +81,5 @@ ENDIF(NOT WIN32)
+ configure_file (platform-config.cmake.in
+ platform-config.cmake @ONLY)
+ install(FILES ${CMAKE_BINARY_DIR}/platform-config.cmake
+- DESTINATION ${CMAKE_INSTALL_LIBDIR_NOARCH}/platform)
++ DESTINATION ${CMAKE_INSTALL_LIBDIR_NOARCH}/cmake/${CMAKE_PROJECT_NAME})
+
diff --git a/libraries/platform/platform.SlackBuild b/libraries/platform/platform.SlackBuild
index e9d1b008a93fd..49d90b15fec39 100644
--- a/libraries/platform/platform.SlackBuild
+++ b/libraries/platform/platform.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for platform
-# Copyright 2015 Larry Hajali <larryhaja[at]gmail[dot]com>
+# Copyright 2015-2016 Larry Hajali <larryhaja[at]gmail[dot]com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=platform
-VERSION=${VERSION:-1.0.10}
+VERSION=${VERSION:-2.0.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -59,9 +59,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz 2>/dev/null || tar xvf $CWD/$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $PRGNAM-$PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -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 {} \;
+# Fix cmake install path.
+patch -p1 < $CWD/platform-2.0.1-install.patch
+
mkdir -p build
cd build
cmake -G "Unix Makefiles" \
diff --git a/libraries/platform/platform.info b/libraries/platform/platform.info
index 16a0d659cc72f..c4f0651bd5900 100644
--- a/libraries/platform/platform.info
+++ b/libraries/platform/platform.info
@@ -1,8 +1,8 @@
PRGNAM="platform"
-VERSION="1.0.10"
+VERSION="2.0.1"
HOMEPAGE="https://github.com/Pulse-Eight/platform"
-DOWNLOAD="https://github.com/Pulse-Eight/platform/archive/1.0.10.tar.gz"
-MD5SUM="4ac07e020227d3cbe54351ec3837ba48"
+DOWNLOAD="https://github.com/Pulse-Eight/platform/archive/platform-2.0.1/platform-platform-2.0.1.tar.gz"
+MD5SUM="7a8df819828b657301d850eacf90d3d9"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""