aboutsummaryrefslogtreecommitdiffstats
path: root/main/rtorrent/APKBUILD
blob: d30c5c008a1739dc1b0d50fe0d41e4840f34b39f (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
42
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>

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

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

prepare() {
	cd "$_builddir"
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-debug \
		--with-xmlrpc-c \
		|| return 1

	make || return 1
}

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

md5sums="5e7550f74e382a6245412c615f45444d  rtorrent-0.9.6.tar.gz"
sha256sums="1e69c24f1f26f8f07d58d673480dc392bfc4317818c1115265b08a7813ff5b0e  rtorrent-0.9.6.tar.gz"
sha512sums="704f7b79d5bc78b817da21a6886662a5a97fde210a110c50f708bdc18e1dcf3ef5c5f4e2740261d41221cfc69c19926bf34e10057adf10601da9e6e06b2cef75  rtorrent-0.9.6.tar.gz"