From 53f433c8a6af2ea454d77ccb6e93cc8fbcb91ca3 Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Tue, 23 Apr 2019 17:58:35 +0200 Subject: [PATCH] network/rtorrent: Updated for version 0.9.7. Added the optional dependency xmlrpc-c Signed-off-by: Matteo Bernardini --- network/rtorrent/README | 2 ++ network/rtorrent/rtorrent.SlackBuild | 10 +++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/network/rtorrent/README b/network/rtorrent/README index 6c05b5620f..74e8064101 100644 --- a/network/rtorrent/README +++ b/network/rtorrent/README @@ -2,3 +2,5 @@ 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 GUI based clients in an ncurses client. + +Optional dependency: xmlrpc-c diff --git a/network/rtorrent/rtorrent.SlackBuild b/network/rtorrent/rtorrent.SlackBuild index f5ee018aff..421bf99503 100644 --- a/network/rtorrent/rtorrent.SlackBuild +++ b/network/rtorrent/rtorrent.SlackBuild @@ -17,7 +17,7 @@ TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -28,8 +28,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -42,6 +42,8 @@ else LIBDIRSUFFIX="" fi +xmlrpcc="" ; [ -x /usr/bin/xmlrpc-c-config ] && xmlrpcc="--with-xmlrpc-c" + set -e rm -rf $PKG @@ -66,6 +68,8 @@ CXXFLAGS="$SLKCFLAGS" \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man \ + $xmlrpcc \ + --disable-debug \ --build=$ARCH-slackware-linux make