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

pkgname=libtorrent
pkgver=0.13.4
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"
}

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="e82f380a9d4b55b379e0e73339c73895  libtorrent-0.13.4.tar.gz"
sha256sums="704e097119dc89e2ee4630396b25de1cd64b0549841347ea75b9ef9217084955  libtorrent-0.13.4.tar.gz"
sha512sums="6a5ea944c1193d1160563828c5901f0cf557f38c4de61153d505344f3c3c8509c765e01b6cc5e3a53ec2bb184a9e8db32ed4ec154e93a93822804210f0fa45d0  libtorrent-0.13.4.tar.gz"