# Maintainer: Bartłomiej Piotrowski pkgname=rtorrent pkgver=0.9.4 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" _builddir="$srcdir/$pkgname-$pkgver" prepare() { cd "$_builddir" update_config_sub || return 1 } build() { cd "$_builddir" export LDFLAGS="$LDFLAGS -lpthread" ./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"