# Contributor: August Klein # Maintainer: August Klein pkgname=libtorrent-rasterbar pkgver=1.2.1 _pkgver=${pkgver//./_} pkgrel=0 pkgdesc="Feature complete C++ bittorrent implementation" options="!check" # Tests hang on all arches url="https://www.rasterbar.com/products/libtorrent" arch="all" license="BSD-3-Clause" depends_dev="boost-dev openssl-dev python3-dev" makedepends="$depends_dev linux-headers" subpackages="py3-$pkgname:_py3 $pkgname-static $pkgname-dev" source="https://github.com/arvidn/libtorrent/releases/download/libtorrent-$_pkgver/$pkgname-$pkgver.tar.gz" build() { PYTHON=/usr/bin/python3 \ ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --enable-tests \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --enable-python-binding \ --with-boost-system=boost_python37 make } check() { make check } package() { make DESTDIR="$pkgdir" install } _py3() { pkgdesc="Python3 bindings for $pkgname" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/ } sha512sums="f9d0f2dd278a56f96f5d6d13996a3647a26acfb31fa9cbd42b2edc68a5ab4818764dec7ab6b0e1a25798adfc6b4460884606af72728c61c7762adbd8bdf4b4c6 libtorrent-rasterbar-1.2.1.tar.gz"