mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
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:
parent
e515c7f964
commit
d44fe595fc
4 changed files with 32 additions and 27 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
make install-strip 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
|
||||
|
||||
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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -11,9 +11,9 @@ rtorrent:
|
|||
rtorrent: rtorrent is a BitTorrent client for ncurses
|
||||
rtorrent: which uses the libtorrent library.
|
||||
rtorrent:
|
||||
rtorrent: This package built @WITH@ xmlrpc-c.
|
||||
rtorrent:
|
||||
rtorrent: Homepage: https://github.com/rakshasa/rtorrent
|
||||
rtorrent:
|
||||
rtorrent:
|
||||
rtorrent:
|
||||
rtorrent:
|
||||
rtorrent:
|
||||
|
|
Loading…
Reference in a new issue