aboutsummaryrefslogtreecommitdiff
path: root/network/kvirc/kvirc.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2018-08-10 16:32:47 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-08-11 07:23:13 +0700
commite94dd6e6535e5cfb76aa6d022372f9a490669bf1 (patch)
tree80077efd3dd65263150195f1a7ea4d63b2fa95f6 /network/kvirc/kvirc.SlackBuild
parent40fb166516ee8d7793055fd7f972db21ffc8735d (diff)
network/kvirc: Updated for version 20180605_8db6192, changed maint.
Added the new dependency qt5-webkit Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'network/kvirc/kvirc.SlackBuild')
-rw-r--r--network/kvirc/kvirc.SlackBuild39
1 files changed, 21 insertions, 18 deletions
diff --git a/network/kvirc/kvirc.SlackBuild b/network/kvirc/kvirc.SlackBuild
index 2315523a5763a..651e5b51d8f1b 100644
--- a/network/kvirc/kvirc.SlackBuild
+++ b/network/kvirc/kvirc.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for KVIrc
# Copyright 2011 Elvio "HelLViS69" Basello <hellvis69@slackware.it>
+# Copyright 2018 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,13 +24,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=kvirc
-VERSION=${VERSION:-r6366}
+VERSION=${VERSION:-20180605_8db6192}
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
@@ -40,8 +41,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -64,36 +65,38 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# -DMANUAL_REVISION=6366 \
+# use our *FLAGS
+sed -i "s|\"-O3|\"$SLKCFLAGS|" CMakeLists.txt
-mkdir release
-cd release
- CFLAGS="$SLKCFLAGS" \
- CXXFLAGS="$SLKCFLAGS" \
+mkdir build
+cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
+ -DMANDIR=/usr/man \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
- -DMANDIR=man \
- -DMANUAL_REVISION=6366 \
- -DWANT_DCC_VIDEO="ON" \
+ -DCMAKE_BUILD_TYPE:STRING="Release" \
+ -DWANT_PERL=ON \
+ -DWANT_AUDIOFILE=ON \
+ -DWANT_VERBOSE=ON \
+ -DWANT_STRIP=ON \
..
make
make install DESTDIR=$PKG
cd ..
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
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 ChangeLog LICENSE doc/* $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING README.md RELEASES doc/*LICENSE* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install