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

pkgname=rtorrent
pkgver=0.9.4
pkgrel=1
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"

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

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

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="fd9490a2ac67d0fa2a567c6267845876  rtorrent-0.9.4.tar.gz"
sha256sums="bc0a2c1ee613b68f37021beaf4e64a9252f91ed06f998c1e897897c354ce7e84  rtorrent-0.9.4.tar.gz"
sha512sums="ae243d0336acff50e91e4ed9d306beb4705559775518e6dc122ec18a1530e59e2c531cf54f4b79899a1569ca18d343fce255071b45c41df1357bddfe926692aa  rtorrent-0.9.4.tar.gz"