updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / wtorrent-svn / PKGBUILD
blobdd7e6439b1e3782afdb65dc97e9cb7afbf9e6f32
1 # Contributor: Alexander 'hatred' Drozdoff <adrozdoff@gmail.com>
2 pkgname=wtorrent-svn
3 pkgver=109
4 pkgrel=1
5 pkgdesc="Web interface to rtorrent a high performance console based BitTorrent client."
6 arch=(any)
7 url="http://www.wtorrent-project.org/trac/"
8 license=('GPL')
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
21 _svnmod=wtorrent
23 build() {
24   cd "$srcdir"
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   rm -rf "$srcdir/$_svnmod-build"
36   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
37   cd "$srcdir/$_svnmod-build"
39   #
40   # BUILD
41   #
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')