summaryrefslogtreecommitdiff
path: root/~fauno/transmission-remote-cli-git/PKGBUILD
blob: 3e513edd7694dae98a9098ee6524a218b10e396a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Maintainer: fauno <fauno@kiwwwi.com.ar>
pkgname=transmission-remote-cli-git
pkgver=20110623
pkgrel=1
pkgdesc="Curses interface for the daemon of the BitTorrent client Transmission"
arch=('any')
url="http://github.com/fagga/transmission-remote-cli"
license=('GPL3')
depends=('python2')
optdepends=('adns-python: Resolve IPs to host names'
            'python-geoip: Guess which country peers come from')
makedepends=('git')
provides=('transmission-remote-cli')
conflicts=('transmission-remote-cli')
install=
source=(python2.patch)

_gitroot="http://github.com/fagga/transmission-remote-cli.git"
_gitname="transmission-remote-cli"

build() {
    cd "$srcdir"
    msg "Connecting to the GIT repository..."

    if [ -d "$srcdir/$_gitname" ] ; then
        cd $_gitname && git pull origin
        msg "The local files are updated."
    else
        git clone $_gitroot
    fi

  rm -rf "$srcdir/$_gitname-build"
  git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  cd "$srcdir/$_gitname-build"

    msg "GIT checkout done or server timeout"
    msg "Starting make..."

    cd $srcdir/$_gitname-build

    patch -Np1 -i ${srcdir}/python2.patch

	install -d $pkgdir/usr/bin/
	install -D transmission-remote-cli.py $pkgdir/usr/bin/transmission-remote-cli

}

md5sums=('6273609fb3a7294328aeaa526b76411c')