summaryrefslogtreecommitdiff
path: root/network/cclive/cclive.SlackBuild
diff options
context:
space:
mode:
authorcrocket <crockabiscuit@gmail.com>2011-07-18 12:46:21 -0300
committerRobby Workman <rworkman@slackbuilds.org>2011-07-21 22:52:10 -0500
commit0673e1db14680c3c16cf169c9136f12c75a2e860 (patch)
treec04b95e3f11069c73844d12d1b1c153c4007e91f /network/cclive/cclive.SlackBuild
parent0cf25d74fe54da3bc2aff510e5f4db8ab580637f (diff)
downloadslackbuilds-0673e1db14680c3c16cf169c9136f12c75a2e860.tar.gz
network/cclive: Updated for version 0.7.3.1.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'network/cclive/cclive.SlackBuild')
-rw-r--r--network/cclive/cclive.SlackBuild36
1 files changed, 17 insertions, 19 deletions
diff --git a/network/cclive/cclive.SlackBuild b/network/cclive/cclive.SlackBuild
index 5e577f71cb..0831ea18e1 100644
--- a/network/cclive/cclive.SlackBuild
+++ b/network/cclive/cclive.SlackBuild
@@ -2,10 +2,10 @@
# Slackware build script for cclive
-# Written by crocket (crockabiscuit@yahoo.com)
+# Written by crocket (crockabiscuit@gmail.com)
PRGNAM=cclive
-VERSION=${VERSION:-0.6.5}
+VERSION=${VERSION:-0.7.3.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -42,7 +42,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@@ -51,20 +51,19 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
- --infodir=/usr/info \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- --build=$ARCH-slackware-linux
-
-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 \
+ -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
+ -DCMAKE_BUILD_TYPE=Release ..
+ make
+ make install DESTDIR=$PKG
+ mv $PKG/usr/share/man $PKG/usr
+ rmdir $PKG/usr/share
+cd ..
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@@ -73,8 +72,7 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- AUTHORS COPYING ChangeLog INSTALL NEWS README TODO \
+cp -a COPYING ChangeLog INSTALL NEWS README \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild