1 # Maintainer: fiatguy85 fiatguy85 <at> gmail <dot> com
2 pkgname=torrentflux-ng-git
5 pkgdesc="The webbased download tool (based on torrentflux-b4rt)"
7 url="http://www.torrentflux-ng.org"
10 depends=('apache' 'php' 'php-apache' 'mysql' 'php-gd' 'perl-xml-simple' 'perl-xml-dom' 'perl-digest-sha1' 'python2' 'openssl' 'glibc' 'zlib' 'libevent' 'curl')
12 provides=('torrentflux-ng')
13 conflicts=('torrentflux-ng' 'torrentflux-b4rt')
22 _gitroot="https://github.com/epsylon3/torrentflux.git"
23 _gitname="torrentflux"
27 msg "Connecting to GIT server...."
29 if [ -d $_gitname ] ; then
30 cd $_gitname && git pull origin
31 msg "The local files are updated."
33 git clone $_gitroot $_gitname
36 msg "GIT checkout done or server timeout"
37 msg "Starting make..."
39 rm -rf "$srcdir/$_gitname-build"
40 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
41 cd "$srcdir/$_gitname-build"
43 install -d $pkgdir/opt/$_gitname
44 cp -R * $pkgdir/opt/$_gitname