Package Details: libtorrent-rasterbar-git 2.0.7.r503.g5e9b0fabb-1

Git Clone URL: https://aur.archlinux.org/libtorrent-rasterbar-git.git (read-only, click to copy)
Package Base: libtorrent-rasterbar-git
Description: A C++ BitTorrent library that aims to be a good alternative to all the other implementations around (git version)
Upstream URL: https://www.rasterbar.com/products/libtorrent/
Licenses: BSD
Conflicts: libtorrent-rasterbar
Provides: libtorrent-rasterbar
Submitter: dbermond
Maintainer: dbermond
Last Packager: dbermond
Votes: 7
Popularity: 0.000000
First Submitted: 2017-04-09 18:15 (UTC)
Last Updated: 2022-10-27 18:03 (UTC)

Required by (29)

Sources (6)

Latest Comments

« First ‹ Previous 1 2

georgyo commented on 2020-07-18 12:50 (UTC) (edited on 2020-07-18 12:51 (UTC) by georgyo)

I was looking for a libtorrent 2.X series, and stumbled upon this. I got it working for my needs, but here are a few suggestions.

  1. It seems your pkgver sed is slightly broken.
 pkgver() {
     cd libtorrent-rasterbar
-    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/_/./g;s/^libtorrent\.//'
+    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/_/./g;s/^libtorrent=//'
 }

  1. You are defaulting to HEAD of the remote git server, which can be almost anything. In the case of GitHub, they do enforce it to be the default branch. But libtorrent has the default branch as RC1_2, which means you won't actually get the latest. If you wanted to be on the edge.
-source=('libtorrent-rasterbar'::'git+https://github.com/arvidn/libtorrent.git'
+source=('libtorrent-rasterbar'::'git+https://github.com/arvidn/libtorrent.git#branch=master'
  1. It's currently building with at most 1 core. You can significantly speedup the build by defaulting to the number of cores in the machine.
-    make -C "build-py${_pyver%%.*}"
+    make -j$(nproc) -C "build-py${_pyver%%.*}"
  1. This is just a personal preference, but may be time to remove python2 support. Or at least move it to another package. Building this package forces you to install the deprecated python2.

dbermond commented on 2020-01-18 14:20 (UTC)

@EndlessEden Package updated. Building fine now.

EndlessEden commented on 2020-01-18 11:06 (UTC)

wont build, complains about missing boost-python3 conf.

Could not find a package configuration file provided by "boost_python3" (requested version 1.71.0) with any of the following names:

boost_python3Config.cmake
boost_python3-config.cmake

Add the installation prefix of "boost_python3" to CMAKE_PREFIX_PATH or set "boost_python3_DIR" to a directory containing one of the above files. If "boost_python3" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): /usr/lib64/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component) /usr/share/cmake-3.16/Modules/FindBoost.cmake:443 (find_package) bindings/python/CMakeLists.txt:56 (find_package)

dbermond commented on 2019-02-06 01:26 (UTC)

@mrturcot Thank you for pointing this. Upstream removed autotools support and now uses cmake. Package is now updated.

BTW_IUseGentoo commented on 2019-01-31 08:11 (UTC) (edited on 2019-01-31 08:12 (UTC) by BTW_IUseGentoo)

build failing here

==> Starting prepare()...
sed: can't read configure.ac: No such file or directory
==> ERROR: A failure occurred in prepare().
Aborting...
Error making: libtorrent-rasterbar-git