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

pkgname=rtorrent
pkgver=0.8.9
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'
subpackages="$pkgname-doc"
source="http://libtorrent.rakshasa.no/downloads/${pkgname}-${pkgver}.tar.gz"

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

	export LDFLAGS="${LDFLAGS} -lpthread"
	./configure \
		--prefix=/usr \
		--enable-debug \
		--with-xmlrpc-c \
		|| return 1

	make || return 1
}

package() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	make DESTDIR="${pkgdir}" install
	install -D doc/faq.xml "${pkgdir}"/usr/share/doc/rtorrent/faq.xml \
		|| return 1
	install -D doc/rtorrent.1 "${pkgdir}"/usr/share/man/man1/rtorrent.1 \
		|| return 1
	install -D doc/rtorrent.rc \
		"${pkgdir}"/usr/share/doc/rtorrent/rtorrent.rc || return 1
}

md5sums="629247636cb1210663b52dadbd040a6c  rtorrent-0.8.9.tar.gz"