summaryrefslogtreecommitdiffstats
path: root/main/libtorrent/APKBUILD
blob: b938de68e0fb49289a4ce63bf58df291d21fd397 (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
# Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>

pkgname=libtorrent
pkgver=0.13.3
pkgrel=0
pkgdesc='BitTorrent library written in C++'
url='http://libtorrent.rakshasa.no/'
arch='all'
license='GPL'
makedepends='libsigc++-dev openssl-dev'
subpackages="$pkgname-dev"
options='libtool'
source="http://libtorrent.rakshasa.no/downloads/${pkgname}-${pkgver}.tar.gz"

_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

build() {
	cd "$_builddir"

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

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

md5sums="e94f6c590bb02aaf4d58618f738a85f2  libtorrent-0.13.3.tar.gz"
sha256sums="34317d6783b7f8d0805274c9467475b5432a246c0de8e28fc16e3b0b43f35677  libtorrent-0.13.3.tar.gz"
sha512sums="40f504db26d52b0c65fc1008c7b1465bde0e316c776028c5448bf15c6fd38389fad780b0c200933e51f63974a43942603e0103d45a98a3dd57f23f01a306ef25  libtorrent-0.13.3.tar.gz"