0

kvirc: add 5.2.8

This commit is contained in:
eleksir
2025-10-09 21:50:15 +03:00
parent 26722242dc
commit 7edbacb772
5 changed files with 173 additions and 0 deletions

10
kvirc/README Normal file
View File

@@ -0,0 +1,10 @@
KVIrc is the K-Visual IRC Client. It's a free portable Internet
Relay Chat client based on the excellent Qt GUI toolkit. KVIrc is
being written by Szymon Stefanek and The KVIrc Development Team with
the contribution of many IRC addicted developers around the world.
It has a full GUI based configuration, floatable windows, built-in
help browser, addons and themes support (configurable from GUI
or scripting), transparency support, dran'n'drop toolbar editing,
activity notifier as well as proxy support, SSL and IPv6 sockets
support, a modular arch which loads modules only when necessary and a
huge API for writing extensions

14
kvirc/doinst.sh Normal file
View File

@@ -0,0 +1,14 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
if [ -x /usr/bin/update-mime-database ]; then
/usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
fi
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
fi
fi

120
kvirc/kvirc.SlackBuild Executable file
View File

@@ -0,0 +1,120 @@
#!/bin/bash
# Slackware build script for KVIrc
# Copyright 2011 Elvio "HelLViS69" Basello <hellvis69@slackware.it>
# Copyright 2018 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
# Copyright 2025 Sergei Fedosoff <eleksir@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# 20220301 bkw: Modified by SlackBuilds.org: fix build on 15.0.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=kvirc
SRCNAM=KVIrc
VERSION=${VERSION:-5.2.8}
BUILD=${BUILD:-1}
TAG=${TAG:-_EXs}
PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
fi
TMP=${TMP:-/tmp/$TAG}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
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
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $SRCNAM-$VERSION
tar xf $CWD/$SRCNAM-$VERSION.tar.?z*
cd $SRCNAM-$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 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
# use our *FLAGS
sed -i "s|\"-O3|\"$SLKCFLAGS|" CMakeLists.txt
# 20220301 bkw: older qt5 didn't need this, but Slackware 15.0's does:
sed -i '1i#include <QPainterPath>' src/modules/iograph/libkviiograph.cpp
mkdir build
#cd build
cmake -GNinja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DMANDIR=/usr/man \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DCMAKE_BUILD_TYPE:STRING="Release" \
-DWANT_PERL=ON \
-DWANT_AUDIOFILE=ON \
-DWANT_VERBOSE=ON \
-DWANT_STRIP=ON \
-DWANT_KDE=OFF \
-DWANT_PHONON=OFF \
-DWANT_QTWEBENGINE=OFF \
-B build
ninja -j$(nproc) -C build
DESTDIR=$PKG ninja -C build install
#cd ..
find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $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
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE

10
kvirc/kvirc.info Normal file
View File

@@ -0,0 +1,10 @@
PRGNAM="KVIrc"
VERSION="5.2.8"
HOMEPAGE="https://kvirc.net"
DOWNLOAD="https://github.com/kvirc/KVIrc/archive/refs/tags/5.2.8/KVIrc-5.2.8.tar.gz"
MD5SUM="cadd5844d06adb071491eb03acfcbe37"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Sergei Fedosoff"
EMAIL="eleksir@gmail.com"

19
kvirc/slack-desc Normal file
View File

@@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.
# Line up the first '|' above the ':' following the base package name, and
# the '|' on the right side marks the last column you can put a character in.
# You must make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
kvirc: kvirc (The K-Visual IRC Client)
kvirc:
kvirc: KVIrc is a free portable Internet Relay Chat client based
kvirc: on the excellent Qt GUI toolkit. KVIrc is being written by
kvirc: Szymon Stefanek and The KVIrc Development Team with the
kvirc: contribution of many IRC addicted developers around the
kvirc: world
kvirc:
kvirc: Homepage: http://kvirc.net
kvirc:
kvirc: