network/gajim: Updated for version 1.5.4, new maint.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
This commit is contained in:
Andrew Clemons 2023-12-28 21:37:23 +09:00 committed by Willy Sudiarto Raharjo
parent f8e825b36b
commit f0790012af
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
3 changed files with 24 additions and 31 deletions

View File

@ -2,9 +2,11 @@ gajim is a GTK3-based Jabber client featuring tabbed interface,
tray icon and notifications, encryption support, local link tray icon and notifications, encryption support, local link
(Zeroconf/Bonjour) and other interesting things. (Zeroconf/Bonjour) and other interesting things.
As of the 0.16 version, gajim uses its own non-blocking xmpp Optional dependencies:
implementation called nbxmpp (python-nbxmpp on slackbuilds.org). This gspell
is required to build. gst-plugins-ugly
gst-plugins-bad-nonfree
For encryption PyOpenSSL is used, which is not required for building, Note that 1.5.4 is the last version to support Python 3.9, so there
but produces a warning message on connection if not installed. will be no more updates of this slackbuild until the next Slackware
release.

View File

@ -3,6 +3,7 @@
# Slackware build script for Gajim # Slackware build script for Gajim
# #
# Copyright 2014-2018 Ruben Schuller # Copyright 2014-2018 Ruben Schuller
# Copyright 2022-2023 Andrew Clemons, Tokyo Japan
# #
# All rights reserved. # All rights reserved.
# #
@ -26,7 +27,7 @@
cd $(dirname $0) ; CWD=$(pwd) cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=gajim PRGNAM=gajim
VERSION=${VERSION:-1.3.3} VERSION=${VERSION:-1.5.4}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz} PKGTYPE=${PKGTYPE:-tgz}
@ -39,9 +40,6 @@ if [ -z "$ARCH" ]; then
esac esac
fi fi
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0 exit 0
@ -51,20 +49,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp} 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 set -e
rm -rf $PKG rm -rf $PKG
@ -72,7 +56,7 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP cd $TMP
rm -rf $PRGNAM-$VERSION rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$PRGNAM-$VERSION cd $PRGNAM-$VERSION
chown -R root:root . chown -R root:root .
find -L . \ find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@ -80,7 +64,14 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
python3 setup.py install --root=$PKG # our pango is too old, but it seems a somewhat arbitrary version was chosen.
# This version of Gajim seems to work fine with our pango in 15.0.
sed -i "/_MIN_PANGO_VER/s/'1.50.0'/'1.48.0'/g" gajim/gajim.py
python3 -m build --wheel --no-isolation
python3 -m installer --destdir "$PKG" dist/*.whl
mv $PKG/usr/share/man $PKG/usr/man mv $PKG/usr/share/man $PKG/usr/man
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \

View File

@ -1,10 +1,10 @@
PRGNAM="gajim" PRGNAM="gajim"
VERSION="1.3.3" VERSION="1.5.4"
HOMEPAGE="https://gajim.org/" HOMEPAGE="https://gajim.org/"
DOWNLOAD="https://gajim.org/downloads/1.3/gajim-1.3.3.tar.gz" DOWNLOAD="https://gajim.org/downloads/1.5/gajim-1.5.4.tar.gz"
MD5SUM="2fa77eadb4323aed392664664c706fb2" MD5SUM="64affe8a670a34fca67808ca1cb5b664"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="pyOpenSSL python-nbxmpp python3-pycrypto python3-keyring css-parser" REQUIRES="python3-build python3-wheel python-nbxmpp cryptography css-parser python3-keyring gtksourceview4 gsound python-qrcode python-axolotl python-gnupg gst-python"
MAINTAINER="Ruben Schuller" MAINTAINER="Andrew Clemons"
EMAIL="sb@rbn.im" EMAIL="andrew.clemons@gmail.com"