aboutsummaryrefslogtreecommitdiffstats
path: root/main/libtorrent/APKBUILD
blob: 01050af11e05b48baf1f6ffaadb503e59d8de4a0 (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
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>

pkgname=libtorrent
pkgver=0.13.6
pkgrel=4
pkgdesc="BitTorrent library written in C++"
url="http://rakshasa.github.io/rtorrent/"
arch="all"
license="GPL"
makedepends="zlib-dev libsigc++-dev libressl-dev"
subpackages="$pkgname-dev"
options="libtool"
source="http://rtorrent.net/downloads/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-debug \
		--disable-instrumentation \
		|| return 1
	make || return 1
}

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

md5sums="66f18044432a62c006c75f6d0bb4d7dc  libtorrent-0.13.6.tar.gz"
sha256sums="2838a08c96edfd936aff8fbf99ecbb930c2bfca3337dd1482eb5fccdb80d5a04  libtorrent-0.13.6.tar.gz"
sha512sums="b8aea4060357a8a40d15d42f1f698ef6f3ebdc885000bfbfa5bf9c81af8c88b5503a107e05c214e3e8489126928d336356c5e7e0eaf836b6b84a3cf74633b050  libtorrent-0.13.6.tar.gz"