aboutsummaryrefslogtreecommitdiffstats
path: root/main/rtorrent/APKBUILD
blob: 0677b287e34234e469561454bfb68656ce9c09ae (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.9.2
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"

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

	export LDFLAGS="${LDFLAGS} -lpthread"
	./configure \
		--prefix=/usr \
		--disable-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="72c3e9ab859bda7cc8aa96c0b508b09f  rtorrent-0.9.2.tar.gz"