summaryrefslogtreecommitdiff
path: root/libraries/platform/platform.SlackBuild
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja@gmail.com>2016-08-12 08:28:25 -0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-08-13 07:22:36 +0700
commitb19bb2e455bcd6ed4da353c975d3aae5509fd063 (patch)
tree681112567fe75140e064a93cc3ef868dd933bfd7 /libraries/platform/platform.SlackBuild
parent2cdb0bdae7732960d646f752159f7711bcd86071 (diff)
downloadslackbuilds-b19bb2e455bcd6ed4da353c975d3aae5509fd063.tar.gz
libraries/platform: Updated for version 2.0.1.
Signed-off-by: Larry Hajali <larryhaja[at]gmail[dot]com>
Diffstat (limited to 'libraries/platform/platform.SlackBuild')
-rw-r--r--libraries/platform/platform.SlackBuild13
1 files changed, 8 insertions, 5 deletions
diff --git a/libraries/platform/platform.SlackBuild b/libraries/platform/platform.SlackBuild
index e9d1b008a9..49d90b15fe 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" \