updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libtorrent-rasterbar-svn / PKGBUILD
bloba50e7fd405d7384ef74d9e4cc4f5fe6504490fd1
1 pkgname=libtorrent-rasterbar-svn
2 pkgver=5708
3 pkgrel=1
4 pkgdesc="A C++ library that aims to be a good alternative to all the other bittorrent implementations around. SVN version"                                                                                         
5 arch=('i686' 'x86_64')
6 url="http://www.rasterbar.com/products/libtorrent/"
7 license=('BSD')
8 depends=('boost-libs' 'python2')
9 makedepends=('boost' 'subversion')
10 conflicts=('libtorrent-rasterbar')
11 provides=('libtorrent-rasterbar')
13 _svntrunk="https://libtorrent.svn.sourceforge.net/svnroot/libtorrent/trunk/"
14 _svnmod="libtorrent"
16 build() {
17 cd $srcdir
18   if [ -d $_svnmod/.svn ]; then
19     (cd $_svnmod && svn up)
20   else
21     svn co $_svntrunk $_svnmod
22   fi
24   msg "SVN checkout done or server timeout"
25   msg "Starting make..."
27   if [[ -d ${srcdir}/${_svnmod}-build ]]; then
28     msg "Cleaning the previous build directory..."
29     rm -rf ${srcdir}/${_svnmod}-build
30   fi
32   cp -r $_svnmod $_svnmod-build
33   cd $_svnmod-build
34   export PYTHON="/usr/bin/python2"
35   ./autotool.sh
36   ./configure --prefix=/usr --enable-python-binding
37   make 
40 package() {
41   cd $srcdir/$_svnmod-build
42   make DESTDIR="${pkgdir}" install
43   install -D COPYING "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"