network/rtorrent: Updated for version 0.9.8, new maintainer.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2024-09-17 12:26:57 -04:00 committed by Willy Sudiarto Raharjo
parent e515c7f964
commit d44fe595fc
No known key found for this signature in database
GPG key ID: 3F617144D7238786
4 changed files with 32 additions and 27 deletions

View file

@ -1,3 +1,5 @@
rtorrent (command-line torrent client)
rtorrent is a BitTorrent client for ncurses, using the libtorrent rtorrent is a BitTorrent client for ncurses, using the libtorrent
library. The client and library is written in C++ with emphasis on speed library. The client and library is written in C++ with emphasis on speed
and efficiency, while delivering equivalent features to those found in and efficiency, while delivering equivalent features to those found in

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# Slackware build script for rtorrent # Slackware build script for rtorrent
# Written by Brian Kysela <brian.kysela@gmail.com> 2009-11-04 # Written by Brian Kysela 2009-11-04
# Updated to 0.8.6 by Brian Kysela 2010-02-16 # Updated to 0.8.6 by Brian Kysela 2010-02-16
# Updated to include rtorrent.rc 2010-04-20 # Updated to include rtorrent.rc 2010-04-20
# Updated to 0.8.7 by Brian Kysela 2010-10-27 # Updated to 0.8.7 by Brian Kysela 2010-10-27
@ -10,10 +10,18 @@
# Updated to 0.8.9 by Brian Kysela 2011-06-22 # Updated to 0.8.9 by Brian Kysela 2011-06-22
# Updated to 0.9.0 by Brian Kysela 2011-12-12 # Updated to 0.9.0 by Brian Kysela 2011-12-12
# Updated 20240917 by B. Watson <urchlay@slackware.uk>.
# Origin version had no license; modified version is
# licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# 20240917 bkw:
# - new maintainer.
# - updated for v0.9.8.
cd $(dirname $0) ; CWD=$(pwd) cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=rtorrent PRGNAM=rtorrent
VERSION=${VERSION:-0.9.7} VERSION=${VERSION:-0.9.8}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz} PKGTYPE=${PKGTYPE:-tgz}
@ -26,9 +34,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
@ -52,7 +57,11 @@ else
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
fi fi
xmlrpcc="" ; [ -x /usr/bin/xmlrpc-c-config ] && xmlrpcc="--with-xmlrpc-c" WITH=WITHOUT
if [ -x /usr/bin/xmlrpc-c-config ]; then
xmlrpcc="--with-xmlrpc-c"
WITH=WITH
fi
set -e set -e
@ -63,11 +72,8 @@ cd $TMP
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION cd $PRGNAM-$VERSION
chown -R root:root . chown -R root:root .
find -L . \ find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} +
-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 {} \;
LDFLAGS="-lpthread" \ LDFLAGS="-lpthread" \
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
@ -83,18 +89,15 @@ CXXFLAGS="$SLKCFLAGS" \
--build=$ARCH-slackware-linux --build=$ARCH-slackware-linux
make make
make install DESTDIR=$PKG make install-strip DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKGDOC
cp -a AUTHORS COPYING README doc/rtorrent.rc $PKGDOC
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
cp -a AUTHORS COPYING INSTALL README doc/rtorrent.rc $PKG/usr/doc/$PRGNAM-$VERSION
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM-SlackBuild
mkdir -p $PKG/install mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc sed "s,@WITH@,$WITH," < $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE

View file

@ -1,10 +1,10 @@
PRGNAM="rtorrent" PRGNAM="rtorrent"
VERSION="0.9.7" VERSION="0.9.8"
HOMEPAGE="https://github.com/rakshasa/rtorrent" HOMEPAGE="https://github.com/rakshasa/rtorrent"
DOWNLOAD="https://github.com/rakshasa/rtorrent/releases/download/v0.9.7/rtorrent-0.9.7.tar.gz" DOWNLOAD="https://github.com/rakshasa/rtorrent/releases/download/v0.9.8/rtorrent-0.9.8.tar.gz"
MD5SUM="284b833794ce3ab4ddc62cf1a20edeb1" MD5SUM="cbdf499faa0882e20d60fcb85a8f51d3"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="libtorrent" REQUIRES="libtorrent"
MAINTAINER="bkysela" MAINTAINER="B. Watson"
EMAIL="bkysela@gmail.com" EMAIL="urchlay@slackware.uk"

View file

@ -11,9 +11,9 @@ rtorrent:
rtorrent: rtorrent is a BitTorrent client for ncurses rtorrent: rtorrent is a BitTorrent client for ncurses
rtorrent: which uses the libtorrent library. rtorrent: which uses the libtorrent library.
rtorrent: rtorrent:
rtorrent: This package built @WITH@ xmlrpc-c.
rtorrent:
rtorrent: Homepage: https://github.com/rakshasa/rtorrent rtorrent: Homepage: https://github.com/rakshasa/rtorrent
rtorrent: rtorrent:
rtorrent: rtorrent:
rtorrent: rtorrent:
rtorrent:
rtorrent: