diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2011-06-23 01:23:46 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2011-06-23 01:23:46 -0300 |
commit | 2a513fc047e9cc6f3daaefa1494f0cca583187f4 (patch) | |
tree | f152a36202d8bbb1dc20a39cccae0d606fe7262f | |
parent | 7e304c41b1773f49e7205477561c2d96ae693ca4 (diff) | |
download | abslibre-2a513fc047e9cc6f3daaefa1494f0cca583187f4.tar.gz abslibre-2a513fc047e9cc6f3daaefa1494f0cca583187f4.tar.bz2 abslibre-2a513fc047e9cc6f3daaefa1494f0cca583187f4.zip |
~fauno/transmission-remote-cli-git-20110623-1
-rw-r--r-- | ~fauno/transmission-remote-cli-git/PKGBUILD | 48 | ||||
-rw-r--r-- | ~fauno/transmission-remote-cli-git/python2.patch | 9 |
2 files changed, 57 insertions, 0 deletions
diff --git a/~fauno/transmission-remote-cli-git/PKGBUILD b/~fauno/transmission-remote-cli-git/PKGBUILD new file mode 100644 index 000000000..3e513edd7 --- /dev/null +++ b/~fauno/transmission-remote-cli-git/PKGBUILD @@ -0,0 +1,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') diff --git a/~fauno/transmission-remote-cli-git/python2.patch b/~fauno/transmission-remote-cli-git/python2.patch new file mode 100644 index 000000000..256b676f0 --- /dev/null +++ b/~fauno/transmission-remote-cli-git/python2.patch @@ -0,0 +1,9 @@ +diff -Nur transmission-remote-cli/transmission-remote-cli.py transmission-remote-cli-python2//transmission-remote-cli.py +--- transmission-remote-cli/transmission-remote-cli.py 2010-10-19 10:33:49.544594708 -0300 ++++ transmission-remote-cli-python2//transmission-remote-cli.py 2010-10-19 10:42:51.278983745 -0300 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python2 + ######################################################################## + # This is transmission-remote-cli, whereas 'cli' stands for 'Curses # + # Luminous Interface', a client for the daemon of the BitTorrent # |