1 # Maintainer: skydrome <irc.freenode.net>
2 # Contributor: smallcms <smallcms at mail dot ru>
7 pkgdesc="Yet another web front-end for rTorrent"
9 url="http://code.google.com/p/rutorrent"
11 depends=('rtorrent' 'php>=5.3.0')
12 makedepends=('subversion')
14 provides=('rutorrent')
15 conflicts=('rutorrent')
17 options=(!strip emptydirs)
22 _svntrunk="http://rutorrent.googlecode.com/svn/trunk/"
27 msg "Connecting to SVN server...."
29 if [[ -d "$_svnmod/.svn" ]]; then
30 svn up -r "$pkgver" "$_svnmod"
32 svn co ${_svntrunk}/${_svnmod} --config-dir ./ -r "$pkgver" "$_svnmod"
33 # This is the secure way of dealing with rtorrent communication! Use it!
34 svn co ${_svntrunk}/plugins/httprpc ${_svnmod}/plugins/httprpc
37 msg "SVN checkout done or server timeout"
38 msg "Starting build..."
40 rm -r ${_svnmod}/plugins/.svn
41 sed -i ${_svnmod}/conf/config.php \
42 -e "s:\$topDirectory .*:\$topDirectory = '/home';:" \
43 -e "s:\$XMLRPCMountPoint .*:\$XMLRPCMountPoint = \"/rutorrent/RPC1\";:"
44 mkdir -p ${pkgdir}/srv/http
45 cp -r "$_svnmod" ${pkgdir}/srv/http
46 chmod -R 755 ${pkgdir}/srv/http/${_svnmod}