summaryrefslogtreecommitdiff
path: root/network/kmess/kmess.SlackBuild
diff options
context:
space:
mode:
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 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 \