#Maintainer: Thorsten Muehlfelder <thenktor(at)gmx.de>

pkgname=qbittorrent
pkgver=2.7.3
pkgrel=1tm
source=("http://nchc.dl.sourceforge.net/project/$pkgname/$pkgname/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz")
docs=(AUTHORS Changelog NEWS TODO COPYING INSTALL README)
url="http://qbittorrent.sourceforge.net"

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"qBittorrent (a C++ / Qt4 Bittorrent Client)"
"The qBittorrent project was created in March 2006 with the idea of"
"developing a new Bittorrent client that would be easy to use, good"
"looking, and featureful but lightweight."
)

build() {
	cd $startdir/src/$pkgname-$pkgver
#	cp $startdir/configure . || return 1
#	cp $startdir/bittorrent.cpp src/ || return 1
	./configure \
		--prefix=/usr \
		--bindir=/usr/bin \
		--datadir=/usr/share \
		--with-libboost-lib=/usr/lib${LIBDIRSUFFIX} \
		--qtdir=/usr/lib${LIBDIRSUFFIX}/qt || return 1
	make -j $numjobs || exit 1
	make INSTALL_ROOT=$startdir/pkg install || return 1
}