blob: e7fea0031c421ac2a471661c07256eb7f406af1a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=libtorrent-rasterbar
pkgver=1.1.13
pkgrel=0
pkgdesc="Feature complete C++ bittorrent implementation"
url="http://www.rasterbar.com/products/libtorrent"
arch="all"
license="BSD-3-Clause"
depends_dev="boost-dev openssl-dev python2-dev"
makedepends="$depends_dev linux-headers"
subpackages="py2-$pkgname:_py2 $pkgname-static $pkgname-dev"
source="https://github.com/arvidn/libtorrent/releases/download/libtorrent-${pkgver//./_}/$pkgname-$pkgver.tar.gz"
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--enable-tests \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--enable-python-binding \
--with-boost-system=boost_system
make
}
check() {
make check
}
package() {
make DESTDIR="$pkgdir" install
}
_py2() {
pkgdesc="Python bindings for $pkgname"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
}
sha512sums="021fc54353fdf5063d55ccdc2057dada292bb0008fb92e93e8d94dd89f529630f290fcdc4f4d095e3192522c57fe0f0da260b5ef8e8e15a8c6ac05728f5f7160 libtorrent-rasterbar-1.1.13.tar.gz"
|