# Contributor: August Klein # Maintainer: August Klein pkgname=libtorrent-rasterbar # Note: version 1.1.0 is not supported by deluge 1.3.12 pkgver=1.0.9 _pkgver=${pkgver%.0} _pkgver=${_pkgver//./_} pkgrel=1 pkgdesc="A feature complete C++ bittorrent implementation" url="http://www.rasterbar.com/products/libtorrent" arch="all" license="BSD" depends="" depends_dev="boost-dev libressl-dev python2-dev" makedepends="$depends_dev linux-headers" subpackages="$pkgname-dev" source="https://github.com/arvidn/libtorrent/releases/download/libtorrent-$_pkgver/$pkgname-$pkgver.tar.gz" builddir="$srcdir"/$pkgname-$pkgver build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --enable-python-binding \ --with-boost-system=boost_system || return 1 make || return 1 } package() { cd "$builddir" make DESTDIR="$pkgdir" install || return 1 } md5sums="361c3d91a7c7447bb271b1775553a03b libtorrent-rasterbar-1.0.9.tar.gz" sha256sums="11a93125ed49f796fca83da925ab7dc29e91d88b915f078caaddaaf559d63db6 libtorrent-rasterbar-1.0.9.tar.gz" sha512sums="68558d440c8220711a410e54a28316b7b98f6dd4d0dae2d56cee3a3f0bd031f8b0623a8eb3fde312c4d1b61b4be8fc21396cb3e9fd7f6d86e3a9a693ee036b66 libtorrent-rasterbar-1.0.9.tar.gz"