pkgname=libtorrent-rasterbar pkgver=2.0.10 pkgrel=3 pkgdesc="A C++ library that aims to be a good alternative to all the other bittorrent implementations around" url="https://libtorrent.org/" arch=('x86_64') license=('custom') depends=('boost-libs' 'python3' 'geoip') makedepends=('boost' 'cmake' 'python3-setuptools') source=("https://github.com/arvidn/libtorrent/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz" "https://github.com/arvidn/libtorrent/commit/71d608fceca7e61c9d124f9ea83f71b06eda3b17.diff") md5sums=('bfe6fff84add3dc5d51e10547f85e217' '28464afd87c351f1e4180f08b6eb37ab') prepare() { cd ${pkgname}-${pkgver} # boost 1.78 needed #patch -p1 -i ${srcdir}/71d608fceca7e61c9d124f9ea83f71b06eda3b17.diff } build() { cmake -B build -S ${pkgname}-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -Dpython-bindings=ON \ -DBoost_DEBUG=ON \ -DBoost_NO_BOOST_CMAKE=ON cmake --build build } package() { DESTDIR=${pkgdir} cmake --install build }