1 # Contributor: Alexander 'hatred' Drozdoff <adrozdoff@gmail.com>
5 pkgdesc="Web interface to rtorrent a high performance console based BitTorrent client."
7 url="http://www.wtorrent-project.org/trac/"
9 depends=('rtorrent' 'php' 'php-sqlite' 'php-curl')
10 optdepends=('apache: for WEB access to wTorrent'
11 'mod_scgi: SCGI module for apache, need for work with Apache (take from AUR)'
12 'php-apache: PHP module for Apache, need for work with Apache'
13 'lighttpd: alternate WEB server for wTorrent, it contained SCGI module'
14 'php-cgi: CGI version of PHP, need to work with lighttpd')
15 makedepends=('subversion')
16 backup=(srv/http/wtorrent/conf/user.conf.php srv/http/wtorrent/conf/system.conf.php)
17 source=(httpd-wtorrent.conf user.conf.php)
18 install=wtorrent.install
20 _svntrunk=http://wtorrent-project.googlecode.com/svn/trunk/wtorrent
26 if [ -d $_svnmod/.svn ]; then
27 (cd $_svnmod && svn up -r $pkgver)
29 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
32 msg "SVN checkout done or server timeout"
33 msg "Starting make..."
35 rm -rf "$srcdir/$_svnmod-build"
36 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
37 cd "$srcdir/$_svnmod-build"
43 find ./ -name .svn -type 'd' | xargs rm -rf
45 mkdir -p $startdir/pkg/srv/http/wtorrent
46 cp -r ./* $startdir/pkg/srv/http/wtorrent/
47 chmod -R 777 $startdir/pkg/srv/http/wtorrent
49 cp ../user.conf.php $startdir/pkg/srv/http/wtorrent/conf
51 mkdir -p $startdir/pkg/etc/httpd/conf/extra
52 cp ../httpd-wtorrent.conf $startdir/pkg/etc/httpd/conf/extra/
54 md5sums=('5b9de46ffba6e82cbb4c4b5b18214267'
55 'e98a4485ee2963fd75b889114ada18a5')