# Maintainer: Mineralwater Xu _pkgname=libtorrent-rasterbar pkgname=$_pkgname-mw pkgver=1.2.13 pkgrel=1 pkgdesc="A C++ BitTorrent library that aims to be a good alternative to all the other implementations around" arch=('x86_64') url="https://www.rasterbar.com/products/libtorrent/" license=('BSD') depends=('boost-libs' 'openssl') makedepends=('git' 'boost' 'cmake' 'python' 'python-setuptools') options=('!emptydirs') source=(https://github.com/arvidn/libtorrent/releases/download/v$pkgver/$_pkgname-$pkgver.tar.gz) sha512sums=('29af34109f8bab91be03cd86a82ef592a9d1ae1a99ef4e6468985ac8968c67f80996bc0ac3fe2478ee20627df52e44128ff28fe81e928f31148b8c7066d67ccb') #prepare() { # cd $_pkgname-$pkgver # # https://bugs.archlinux.org/task/67754 # patch -p1 -i ../$_pkgname-cxx14-fix.patch # # # Avoid depending on newer processors # sed -i 's/-msse4.2//' configure.ac # # autoreconf -if #} build() { cd $_pkgname-$pkgver cmake \ -B "_build" \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX="/usr" \ -DCMAKE_INSTALL_LIBDIR="lib" \ -Dpython-bindings=ON \ -Dboost-python-module-name="python" \ ./ make -C "_build" } package() { cd $_pkgname-$pkgver make -C "_build" DESTDIR="$pkgdir" install install -Dm644 COPYING "$pkgdir/usr/share/licenses/$_pkgname/LICENSE" }