python/python-nbxmpp: Updated for version 2.0.4.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Ruben Schuller 2022-01-31 21:01:40 +13:00 committed by Willy Sudiarto Raharjo
parent 8a0d7eb914
commit a424e36d8f
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 8 additions and 15 deletions

View file

@ -2,7 +2,7 @@
# Slackware build script for python-nbxmpp
# Copyright 2014-2018 Ruben Schuller
# Copyright 2014-2019 Ruben Schuller
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -25,11 +25,11 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python-nbxmpp
VERSION=${VERSION:-0.6.2}
VERSION=${VERSION:-2.0.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
TARNAM=${PRGNAM}-nbxmpp
PKGTYPE=${PKGTYPE:-tgz}
TARNAM=nbxmpp
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@ -80,20 +80,13 @@ 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 {} \;
python setup.py install --root=$PKG
# Python 3 support.
if $(python3 -c 'import sys' 2>/dev/null); then
python3 setup.py install --root=$PKG
fi
python3 setup.py install --root=$PKG
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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -r doc/* $PKG/usr/doc/$PRGNAM-$VERSION
cp COPYING $PKG/usr/doc/$PRGNAM-$VERSION
cp PKG-INFO $PKG/usr/doc/$PRGNAM-$VERSION
cp ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

View file

@ -1,10 +1,10 @@
PRGNAM="python-nbxmpp"
VERSION="0.6.2"
VERSION="2.0.4"
HOMEPAGE="https://dev.gajim.org/gajim/python-nbxmpp/"
DOWNLOAD="https://dev.gajim.org/gajim/python-nbxmpp/uploads/c2db525b46c9c4ac3ada293da7348b7c/nbxmpp-0.6.2.tar.gz"
MD5SUM="4db4a95b2d53f76afcad3233cd80129b"
DOWNLOAD="https://dev.gajim.org/gajim/python-nbxmpp/-/archive/nbxmpp-2.0.4/python-nbxmpp-nbxmpp-2.0.4.tar.gz"
MD5SUM="a67d681dd678733fc25809d714c106a4"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
REQUIRES="python-precis-i18n"
MAINTAINER="Ruben Schuller"
EMAIL="sb@rbn.im"