# Template file for 'rtorrent'
pkgname=rtorrent
version=0.16.20
revision=1
build_style=gnu-configure
configure_args="--with-xmlrpc-c"
hostmakedepends="automake libtool pkg-config"
makedepends="libcppunit-devel libsigc++-devel libtorrent-devel ncurses-devel
 xmlrpc-c-devel"
short_desc="Ncurses BitTorrent client based on libTorrent"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/rakshasa/rtorrent"
distfiles="https://github.com/rakshasa/${pkgname}/archive/v${version}.tar.gz"
checksum=a089a6f4d39091315da1c76e381ababf486ea9b0a9d60546368fd84cd1cf4da3

pre_configure() {
	autoreconf -fi
	sed -e 's,test "$cross_compiling" = yes, false,' -i configure
}

post_install() {
	vman doc/old/rtorrent.1
	vsconf doc/rtorrent.rc-example rtorrent.rc
}
