updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / torrentflux-ng-git / PKGBUILD
blobed2d7b741340cabf8e5de847b7288324cd9f8986
1 # Maintainer: fiatguy85 fiatguy85 <at> gmail <dot> com
2 pkgname=torrentflux-ng-git
3 pkgver=20110126
4 pkgrel=1
5 pkgdesc="The webbased download tool (based on torrentflux-b4rt)"
6 arch=('any')
7 url="http://www.torrentflux-ng.org"
8 license=('GPL')
9 groups=()
10 depends=('apache' 'php' 'php-apache' 'mysql' 'php-gd' 'perl-xml-simple' 'perl-xml-dom' 'perl-digest-sha1' 'python2' 'openssl' 'glibc' 'zlib' 'libevent' 'curl')
11 makedepends=('git')
12 provides=('torrentflux-ng')
13 conflicts=('torrentflux-ng' 'torrentflux-b4rt')
14 replaces=()
15 backup=()
16 options=()
17 install=
18 source=()
19 noextract=()
20 md5sums=()
22 _gitroot="https://github.com/epsylon3/torrentflux.git"
23 _gitname="torrentflux"
25 build() {
26   cd "$srcdir"
27   msg "Connecting to GIT server...."
29   if [ -d $_gitname ] ; then
30     cd $_gitname && git pull origin
31     msg "The local files are updated."
32   else
33     git clone $_gitroot $_gitname
34   fi
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