summaryrefslogtreecommitdiff
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
parent502183b0d2316f2e93f7df18ce776ec9d44fc076 (diff)
downloadslackbuilds-a2d9543e9330ad34d7a39fb1235d494d7c82c779.tar.gz
network/kmess: Updated for version 2.0.6.2.
Out of tree build, cleanups Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r--network/kmess/kmess.SlackBuild24
-rw-r--r--network/kmess/kmess.info6
2 files changed, 17 insertions, 13 deletions
diff --git a/network/kmess/kmess.SlackBuild b/network/kmess/kmess.SlackBuild
index 6d6292dfa4..6bd0bca3d2 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 \
diff --git a/network/kmess/kmess.info b/network/kmess/kmess.info
index 6eb18efb53..51a7e19d01 100644
--- a/network/kmess/kmess.info
+++ b/network/kmess/kmess.info
@@ -1,8 +1,8 @@
PRGNAM="kmess"
-VERSION="2.0"
+VERSION="2.0.6.2"
HOMEPAGE="http://kmess.org/"
-DOWNLOAD="http://downloads.sourceforge.net/sourceforge/kmess/kmess-2.0.tar.gz"
-MD5SUM="619781ad93c9848672b17ecc8536545c"
+DOWNLOAD="http://downloads.sourceforge.net/kmess/kmess-2.0.6.2.tar.bz2"
+MD5SUM="a2e57911713308bef81b9347135cc5dd"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""