From a6c18fd70e2947c94abf67c3339794049a560272 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Fri, 24 Jun 2016 12:31:03 +0000 Subject: [PATCH] added extra/libtorrent-rasterbar --- extra/libtorrent-rasterbar/PKGBUILD | 47 +++++++++++++++++++++ extra/libtorrent-rasterbar/boost-1.60.patch | 22 ++++++++++ 2 files changed, 69 insertions(+) create mode 100644 extra/libtorrent-rasterbar/PKGBUILD create mode 100644 extra/libtorrent-rasterbar/boost-1.60.patch diff --git a/extra/libtorrent-rasterbar/PKGBUILD b/extra/libtorrent-rasterbar/PKGBUILD new file mode 100644 index 000000000..4ab06aee7 --- /dev/null +++ b/extra/libtorrent-rasterbar/PKGBUILD @@ -0,0 +1,47 @@ +# $Id$ +# Maintainer: Felix Yan +# Contributor: Ionut Biru +# Contributor: Hugo Doria + +# ALARM: Kevin Mihelich +# - remove -msse4.2 compile flag + +pkgname=libtorrent-rasterbar +pkgver=1.1 +pkgrel=2 +epoch=1 +pkgdesc="A C++ BitTorrent library that aims to be a good alternative to all the other implementations around" +url="http://www.rasterbar.com/products/libtorrent/" +arch=('i686' 'x86_64') +license=('BSD') +depends=('boost-libs' 'geoip' 'python2') +makedepends=('boost') +options=('!emptydirs') +source=(https://github.com/arvidn/libtorrent/archive/libtorrent-${pkgver//./_}/$pkgname-$pkgver.tar.gz) +sha1sums=('ac6e871d3b71a56e849ab1fc6369165a80acfd32') + +prepare() { + # https://github.com/qbittorrent/qBittorrent/issues/5265#issuecomment-220007436 + export CXXFLAGS="$CXXFLAGS -std=c++11" + + # remove sse + sed -i 's/-msse4.2//' libtorrent-libtorrent-${pkgver//./_}/configure.ac +} + +build() { + cd libtorrent-libtorrent-${pkgver//./_} + ./autotool.sh + PYTHON=/usr/bin/python2 \ + ./configure \ + --prefix=/usr \ + --enable-python-binding \ + --with-libgeoip=system \ + --with-libiconv + make +} + +package() { + cd libtorrent-libtorrent-${pkgver//./_} + make DESTDIR="$pkgdir" install + install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} diff --git a/extra/libtorrent-rasterbar/boost-1.60.patch b/extra/libtorrent-rasterbar/boost-1.60.patch new file mode 100644 index 000000000..ad015a942 --- /dev/null +++ b/extra/libtorrent-rasterbar/boost-1.60.patch @@ -0,0 +1,22 @@ +From 5330ba5af717b983e456be9f576d66b78d9ca214 Mon Sep 17 00:00:00 2001 +From: Andrew Resch +Date: Sat, 2 Jan 2016 14:40:02 -0800 +Subject: [PATCH] register_ptr_to_python for boost::shared_ptr + +--- + bindings/python/src/session.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/bindings/python/src/session.cpp b/bindings/python/src/session.cpp +index fe53e10..727a54a 100644 +--- a/bindings/python/src/session.cpp ++++ b/bindings/python/src/session.cpp +@@ -799,7 +799,7 @@ void bind_session() + .def("settings", &get_feed_settings) + ; + +- register_ptr_to_python >(); ++ register_ptr_to_python >(); + + def("high_performance_seed", high_performance_seed); + def("min_memory_usage", min_memory_usage);