aboutsummaryrefslogtreecommitdiffstats
path: root/main/libtorrent/APKBUILD
blob: d7d0dad9636c3f8d24fe4651c833926f4dc3c8f8 (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
# 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"

build() {
	cd "$srcdir"/$pkgname-$pkgver

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

package() {
	cd "$srcdir"/$pkgname-$pkgver
	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"