From 5349357ec44db657346275b458211b2e794798de Mon Sep 17 00:00:00 2001 From: David Woodfall Date: Mon, 5 Mar 2018 00:09:56 +0000 Subject: libraries/libtorrent-rasterbar: Update for qbittorrent-qt5. Signed-off-by: David Spencer --- libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild b/libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild index d4535e8286c7b..90346d6a017ae 100644 --- a/libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild +++ b/libraries/libtorrent-rasterbar/libtorrent-rasterbar.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=libtorrent-rasterbar VERSION=${VERSION:-1.0.11} -BUILD=${BUILD:-3} +BUILD=${BUILD:-4} TAG=${TAG:-_SBo} CWD=$(pwd) @@ -54,7 +54,7 @@ else LIBDIRSUFFIX="" fi -set -eu +set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT @@ -69,8 +69,12 @@ 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 {} \; +# https://github.com/qbittorrent/qBittorrent/issues/6383#issuecomment-281535787 +sed -i -e "s/+ target_specific(),/+ target_specific() + ['-std=c++11'],/" \ + bindings/python/setup.py + CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS -std=c++11" \ LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \ ./configure \ --prefix=/usr \ -- cgit v1.2.3