aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libtorrent-rasterbar/APKBUILD
blob: c17f80fe099f56d282da1b7fa9ba54062bdb3d43 (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
# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=libtorrent-rasterbar
pkgver=1.1.8
_pkgver=${pkgver%.0}
_pkgver=${_pkgver//./_}
pkgrel=2
pkgdesc="Feature complete C++ bittorrent implementation"
url="http://www.rasterbar.com/products/libtorrent"
arch="all"
license="BSD-3-Clause"
depends=""
depends_dev="boost-dev openssl-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-tests \
		--enable-python-binding \
		--with-boost-system=boost_system
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="92132c472e203fb38928bd3ed981360a1c39355422f2668e5f609393bc7f49d77171205c39fcefcdb48e964c1ba66f1237edc2d94213a38fea3086e53a2a5b8a  libtorrent-rasterbar-1.1.8.tar.gz"