# Contributor: Peter Bui # Contributor: Sören Tempel # Contributor: Bartłomiej Piotrowski # Maintainer: Jakub Jirutka pkgname=rtorrent pkgver=0.9.7 pkgrel=2 pkgdesc="Ncurses BitTorrent client based on libTorrent" url="https://rakshasa.github.io/rtorrent/" license="GPL" arch="all" makedepends="libsigc++-dev libtorrent-dev curl-dev xmlrpc-c-dev ncurses-dev" checkdepends="cppunit-dev" subpackages="$pkgname-doc" source="https://rtorrent.net/downloads/$pkgname-$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --enable-ipv6 \ --disable-debug \ --with-xmlrpc-c make } check() { cd "$builddir" make check } package() { cd "$builddir" make DESTDIR="$pkgdir" install install -Dm644 doc/rtorrent.rc "$pkgdir"/usr/share/doc/rtorrent/rtorrent.rc } sha512sums="e663bd8984bcec91868beaf16d215708bdea8872338365ba6a05c9ea830b2aff045257bbc8bd0414d84009ee85852822c97bb073dfb41c21e3b0081ecaeecc00 rtorrent-0.9.7.tar.gz"