updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / deluge-client-svn / PKGBUILD
blob223f6d97b0369fe8999ea1e7883a98c8b3e6e9d6
1 #Maintained by pyther (xyz@pyther.net)
3 pkgname=deluge-client-svn
4 pkgver=3927
5 pkgrel=1
6 pkgdesc="Unoffical deluge-svn package... client only"
7 arch=('i686' 'x86_64')
8 url="http://deluge-torrent.org/"
9 license=('GPL2')
10 depends=('pygtk' 'boost' 'pyxdg' 'dbus-python' 'librsvg' 'desktop-file-utils'
11          'hicolor-icon-theme' 'setuptools' 'patch')
12 makedepends=('subversion' 'intltool' 'boost')
13 conflicts=('deluge' 'deluge-svn')
14 provides=('deluge' 'deluge-svn')
15 options=('!emptydirs')
16 install=deluge.install
17 source=(client-only.patch)
18 md5sums=('bd57253a4d7c896dbaca59aef283fa9c')
20 _svntrunk="http://svn.deluge-torrent.org/trunk/"
21 _svnmod="trunk"
23 build() {
24   cd ${startdir}/src
26   if [ -d $_svnmod/.svn ]; then
27     (cd $_svnmod && svn up -r $pkgver)
28   else
29     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
30   fi
32   msg "SVN checkout done or server timeout"
33   msg "Starting make..."
35   cp -r $_svnmod $_svnmod-build
36   cd $_svnmod-build
38   msg "Patching - Client Only"
39   cat $startdir/client-only.patch | patch -p1 
41   #Special CFLAGS
42   #CFLAGS="$CFLAGS -fPIC"
44   python setup.py build
45   python setup.py install --root=$startdir/pkg
47   rm  -rf  $startdir/src/$_svnmod-build
49   #Will not work as we did not compile libtorrent!
50   rm ${startdir}/pkg/usr/bin/deluged