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

pkgname=libtorrent-rasterbar
pkgver=1.0.9
pkgrel=1dj
source=(https://github.com/arvidn/libtorrent/releases/download/libtorrent-1_0_9/$pkgname-$pkgver.tar.gz)
sourcetemplate=http://people.salixos.org/djemos/salix/14.2/$pkgname
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
}