# Template file for 'rtorrent'
pkgname=rtorrent
version=0.9.2
revision=2
build_style=gnu-configure
configure_args="--disable-debug"
hostmakedepends="automake pkg-config"
makedepends="libcurl-devel libsigc++-devel libtorrent-devel>=0.13.2 ncurses-devel"
short_desc="Ncurses BitTorrent client based on libTorrent"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://libtorrent.rakshasa.no"
license="GPL-2"
distfiles="http://libtorrent.rakshasa.no/downloads/$pkgname-$version.tar.gz"
checksum=5c8f8c780bee376afce3c1cde2f5ecb928f40bac23b2b8171deed5cf3c888c3d
long_desc="
 rtorrent is a BitTorrent client for ncurses, using the libtorrent library. 
 The client and library is written in C++ with emphasis on speed and efficiency, 
 while delivering equivalent features to those found in GUI based clients 
 in an ncurses client."

pre_configure() {
	sed -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' -i configure.ac
	autoreconf -fi
}

rtorrent_package() {
	depends="libtorrent>=0.13.2"
	pkg_install() {
		vmove usr
	}
}