aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libtorrent-rasterbar/APKBUILD
blob: cf29b3cd65855e6c8030741052f60df831399713 (plain) (blame)
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
# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=libtorrent-rasterbar
# Note: version 1.1.0 is not supported by deluge 1.3.12
pkgver=1.0.11
_pkgver=${pkgver%.0}
_pkgver=${_pkgver//./_}
pkgrel=4
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="f49e43286a64e8bbdef9ea59baa78b55  libtorrent-rasterbar-1.0.11.tar.gz"
sha256sums="828d686770346f6da2c143c5a2844c5f5e407eb4a37982e90022763508abd62f  libtorrent-rasterbar-1.0.11.tar.gz"
sha512sums="770d16b241174ae4b121af9b2ac7bcde8b14c6ed99352b827b760a3cbdc2c0ebd0d505319762897720c5f72acdff506ee9948ac1140e6d4591805eca5439b184  libtorrent-rasterbar-1.0.11.tar.gz"