aboutsummaryrefslogtreecommitdiff
path: root/network/kmess/kmess.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2012-09-19 19:38:21 +0200
committerRobby Workman <rworkman@slackbuilds.org>2012-09-19 20:29:58 -0500
commita2d9543e9330ad34d7a39fb1235d494d7c82c779 (patch)
tree167b8afa9122113210f7e5631f9a8f44c68a71c5 /network/kmess/kmess.SlackBuild
parent502183b0d2316f2e93f7df18ce776ec9d44fc076 (diff)
network/kmess: Updated for version 2.0.6.2.
Out of tree build, cleanups Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'network/kmess/kmess.SlackBuild')
-rw-r--r--network/kmess/kmess.SlackBuild24
1 files changed, 14 insertions, 10 deletions
diff --git a/network/kmess/kmess.SlackBuild b/network/kmess/kmess.SlackBuild
index 6d6292dfa405..6bd0bca3d295 100644
--- a/network/kmess/kmess.SlackBuild
+++ b/network/kmess/kmess.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=kmess
-VERSION=2.0
+VERSION=${VERSION:-2.0.6.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -60,7 +60,8 @@ set -e
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+rm -fr $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@@ -69,14 +70,17 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-cmake . \
--DCMAKE_CXX_FLAGS="${SLKCFLAGS}" \
--DCMAKE_C_FLAGS="${SLKCFLAGS}" \
--DCMAKE_INSTALL_PREFIX="/usr" \
--DLIB_SUFFIX=${LIBDIRSUFFIX}
-
-make
-make install DESTDIR=$PKG
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_SUFFIX=${LIBDIRSUFFIX} \
+ -DCMAKE_BUILD_TYPE=Release ..
+ make
+ make install DESTDIR=$PKG
+cd ..
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \