diff options
author | Marek Srejma <sam_web@yahoo.de> | 2017-05-03 08:44:06 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-05-03 08:44:06 +0700 |
commit | b8a3d224b9fb60f02e780ed7afdc9c6ab2e8d41b (patch) | |
tree | ac545730f13b7505209f671cd57feb5b4d06bb5e /network/cclive/cclive.SlackBuild | |
parent | 2abba550de51749f32fd0a29c221788b9aaa222d (diff) | |
download | slackbuilds-b8a3d224b9fb60f02e780ed7afdc9c6ab2e8d41b.tar.gz |
network/cclive: Updated for version 0.9.3, new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/cclive/cclive.SlackBuild')
-rw-r--r-- | network/cclive/cclive.SlackBuild | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/network/cclive/cclive.SlackBuild b/network/cclive/cclive.SlackBuild index d9e5b0ebdd..393a6d7868 100644 --- a/network/cclive/cclive.SlackBuild +++ b/network/cclive/cclive.SlackBuild @@ -1,17 +1,18 @@ #!/bin/sh # Slackware build script for cclive -# Written by crocket (crockabiscuit@gmail.com) -# Maintained by slackmuz (petar.linog@gmail.com) + +# Written by crocket <crockabiscuit@gmail.com> +# Modified by Marek Srejma <sam_web@yahoo.de> 2017/05/03 PRGNAM=cclive -VERSION=${VERSION:-0.7.16} +VERSION=${VERSION:-0.9.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -22,18 +23,14 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" - LIBDIRSUFFIX="" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" - LIBDIRSUFFIX="" fi set -e @@ -42,7 +39,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.xz +tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -51,14 +48,16 @@ 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 {} \; -CPPFLAGS="-P" \ +# Add missing library +sed -i '25,1i#include <iostream>' src/cc/error.h src/cc/options.h +# Eliminate some warnings +sed -i '/with.*CXX/ s/", "/ ", " /' src/cc/options.h + +CPPFLAGS="-P -std=gnu++11" \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --sysconfdir=/etc \ - --localstatedir=/var \ --mandir=/usr/man \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --build=$ARCH-slackware-linux @@ -67,10 +66,13 @@ make make install-strip DESTDIR=$PKG 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 +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 \ +cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README VERSION \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |