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

pkgname=rtorrent
pkgver=0.9.3
pkgrel=0
pkgdesc='Ncurses BitTorrent client based on libTorrent'
url='http://libtorrent.rakshasa.no/'
license='GPL'
arch='all'
makedepends='libsigc++-dev libtorrent-dev curl-dev xmlrpc-c-dev ncurses-dev'
subpackages="$pkgname-doc"
source="http://libtorrent.rakshasa.no/downloads/${pkgname}-${pkgver}.tar.gz"

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

	export LDFLAGS="$LDFLAGS -lpthread"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-debug \
		--with-xmlrpc-c \
		|| return 1

	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install
	install -D doc/rtorrent.rc "$pkgdir"/usr/share/doc/rtorrent/rtorrent.r
}

md5sums="0bf2f262faa8c8c8d3b11ce286ea2bf2  rtorrent-0.9.3.tar.gz"
sha256sums="9e93ca41beb1afe74ad7ad8013e0d53ae3586c9b0e97263d722f721535cc7310  rtorrent-0.9.3.tar.gz"
sha512sums="a6cc390795c0cf36bf70f4f141db3e176c81df0d6754fe2e6a95ef59385a70e7ce006fe81b83deff5b32e06cc771d03c5c7ba1140be64b2d252719e8aa2058f3  rtorrent-0.9.3.tar.gz"