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

pkgname=libtorrent
pkgver=0.13.6
pkgrel=1gv
source=(http://rtorrent.net/downloads/libtorrent-$pkgver.tar.gz)
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "maintainers")
url=https://rakshasa.github.io/rtorrent/

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 \
		--build=$arch-slackware-linux
	make -j $numjobs || return 1
	make install DESTDIR=$startdir/pkg
}