diff options
author | B. Watson <urchlay@slackware.uk> | 2024-09-17 12:26:57 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-09-21 07:32:15 +0700 |
commit | d44fe595fc89fb6e2c8c9e942ec521601cdd7823 (patch) | |
tree | 20a3ed509d28b72382335bc24e24f9255b226a9c /network/rtorrent | |
parent | e515c7f9645fde872d56ebc84fd894682f9e387b (diff) |
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>
Diffstat (limited to 'network/rtorrent')
-rw-r--r-- | network/rtorrent/README | 2 | ||||
-rw-r--r-- | network/rtorrent/rtorrent.SlackBuild | 43 | ||||
-rw-r--r-- | network/rtorrent/rtorrent.info | 10 | ||||
-rw-r--r-- | network/rtorrent/slack-desc | 4 |
4 files changed, 32 insertions, 27 deletions
diff --git a/network/rtorrent/README b/network/rtorrent/README index 74e8064101a82..18d58123afe84 100644 --- a/network/rtorrent/README +++ b/network/rtorrent/README @@ -1,3 +1,5 @@ +rtorrent (command-line torrent client) + rtorrent is a BitTorrent client for ncurses, using the libtorrent library. The client and library is written in C++ with emphasis on speed and efficiency, while delivering equivalent features to those found in diff --git a/network/rtorrent/rtorrent.SlackBuild b/network/rtorrent/rtorrent.SlackBuild index f341ad10bf029..5638109980e17 100644 --- a/network/rtorrent/rtorrent.SlackBuild +++ b/network/rtorrent/rtorrent.SlackBuild @@ -1,7 +1,7 @@ #!/bin/bash # 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 include rtorrent.rc 2010-04-20 # 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.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) PRGNAM=rtorrent -VERSION=${VERSION:-0.9.7} +VERSION=${VERSION:-0.9.8} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -26,9 +34,6 @@ if [ -z "$ARCH" ]; then esac 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 echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -52,7 +57,11 @@ else LIBDIRSUFFIX="" 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 @@ -63,11 +72,8 @@ cd $TMP tar xvf $CWD/$PRGNAM-$VERSION.tar.gz 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 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} + LDFLAGS="-lpthread" \ CFLAGS="$SLKCFLAGS" \ @@ -83,18 +89,15 @@ CXXFLAGS="$SLKCFLAGS" \ --build=$ARCH-slackware-linux make -make install DESTDIR=$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 +make install-strip DESTDIR=$PKG -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -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 +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKGDOC +cp -a AUTHORS COPYING README doc/rtorrent.rc $PKGDOC +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild 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 /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/network/rtorrent/rtorrent.info b/network/rtorrent/rtorrent.info index 0ea94d858f5ca..7b92fe61347ec 100644 --- a/network/rtorrent/rtorrent.info +++ b/network/rtorrent/rtorrent.info @@ -1,10 +1,10 @@ PRGNAM="rtorrent" -VERSION="0.9.7" +VERSION="0.9.8" HOMEPAGE="https://github.com/rakshasa/rtorrent" -DOWNLOAD="https://github.com/rakshasa/rtorrent/releases/download/v0.9.7/rtorrent-0.9.7.tar.gz" -MD5SUM="284b833794ce3ab4ddc62cf1a20edeb1" +DOWNLOAD="https://github.com/rakshasa/rtorrent/releases/download/v0.9.8/rtorrent-0.9.8.tar.gz" +MD5SUM="cbdf499faa0882e20d60fcb85a8f51d3" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="libtorrent" -MAINTAINER="bkysela" -EMAIL="bkysela@gmail.com" +MAINTAINER="B. Watson" +EMAIL="urchlay@slackware.uk" diff --git a/network/rtorrent/slack-desc b/network/rtorrent/slack-desc index d7c82d3ff0db0..ed4cf3c99ae74 100644 --- a/network/rtorrent/slack-desc +++ b/network/rtorrent/slack-desc @@ -11,9 +11,9 @@ rtorrent: rtorrent: rtorrent is a BitTorrent client for ncurses rtorrent: which uses the libtorrent library. rtorrent: -rtorrent: Homepage: https://github.com/rakshasa/rtorrent -rtorrent: +rtorrent: This package built @WITH@ xmlrpc-c. rtorrent: +rtorrent: Homepage: https://github.com/rakshasa/rtorrent rtorrent: rtorrent: rtorrent: |