#Maintainer: Dimitris Jemos <djemos~at~slackel~dot~gr>

pkgname=libtorrent-rasterbar
pkgver=0.16.12
pkgrel=1rl
source=(http://libtorrent.googlecode.com/files/libtorrent-rasterbar-$pkgver.tar.gz)
sourcetemplate=http://people.salixos.org/laprjns/$pkgname/$pkgver
docs=("AUTHORS" "COPYING" "ChangeLog" "INSTALL" "NEWS" "README" "docs")
url=http://www.rasterbar.com/products/libtorrent

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
 "libtorrent-rasterbar (a bittorrent C++ library)"
 "libtorrent is a C++ library that aims to be a good alternative to all"
 "of the other bittorrent implementations around.  It is a library, not"
 "a full featured client, although it comes with an example client."
 ""
 "Homepage: http://www.rasterbar.com/products/libtorrent/"
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc \
		--disable-static \
		--with-boost-libdir=/usr/lib${LIBDIRSUFFIX} \
		--enable-python-binding \
		--build=$arch-slackware-linux

	make -j $numjobs || return 1
	make install DESTDIR=$startdir/pkg

	mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver
	cp -a docs $startdir/pkg/usr/doc/$pkgname-$pkgver || return 1

	chown -R root:root $startdir/pkg
}