# SliTaz package receipt.

PACKAGE="ctorrent-dnh"
VERSION="3.3.2"
CATEGORY="network"
SHORT_DESC="Command line Bittorrent client."
MAINTAINER="pankso@slitaz.org"
TARBALL="${PACKAGE}$VERSION.tar.gz"
WEB_SITE="http://www.rahul.net/dholmes/ctorrent/"
WGET_URL="$SF_MIRROR/dtorrent/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	mv ${PACKAGE}$VERSION $PACKAGE-$VERSION 2>/dev/null
	cd $src
	./configure \
		--prefix=/usr \
		--with-ssl=no \
		$CONFIGURE_ARGS
	make
	make DESTDIR=$PWD/_pkg install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr
	cp -a $_pkg/usr/bin $fs/usr
	# Torrentbox
	cp $stuff/torrentbox $fs/usr/bin
}