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

pkgname=libtorrent
pkgver=0.13.7
pkgrel=1
pkgdesc="BitTorrent library written in C++"
url="http://rakshasa.github.io/rtorrent/"
arch="all"
license="GPL"
makedepends="zlib-dev libsigc++-dev openssl-dev automake autoconf libtool linux-headers"
subpackages="$pkgname-dev"
source="http://rtorrent.net/downloads/$pkgname-$pkgver.tar.gz
	0001-Fix-the-DH-parameters-generation-with-OpenSSL-1.1.patch"
builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	default_prepare
	cd "$builddir"
	./autogen.sh
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-debug \
		--disable-instrumentation
	make
}

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

sha512sums="7bf3e87dbd19eb4e6806dff8a01c3ec61ea960bbd809d4bcbee96a46e169f97d0baf0fc85ab4a1efbbab07850e9b1060bae46c453ea6c42f5c23f8d921295efb  libtorrent-0.13.7.tar.gz
3cb44b4965149a9c70a9390104d5918dcb69671aa5d9ee3efa2f1c32b36f84619261a3b474c9651d040b60fe29ecbc42ba494ed7267443db0e865ebf9a2f79ce  0001-Fix-the-DH-parameters-generation-with-OpenSSL-1.1.patch"