#Maintainer: George Vlahavas (vlahavas~at~gmail~dot~com)

pkgname=libtorrent
pkgver=0.13.2
pkgrel=1rl
source=(http://libtorrent.rakshasa.no/downloads/libtorrent-$pkgver.tar.gz)
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "maintainers")
url=http://libtorrent.rakshasa.no/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"libtorrent (a BitTorrent library written in C++ for *nix)"
"LibTorrent is a BitTorrent library with a focus on high performance"
"and good code. The library differentiates itself from other"
"implementations by transfering directly from file pages to the network"
"stack. On high-bandwidth connections it is able to seed at 3 times the"
"speed of the official client."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc
	make || return 1
	make install DESTDIR=$startdir/pkg
}