summaryrefslogtreecommitdiff
path: root/~fauno/transmission-remote-cli
diff options
context:
space:
mode:
Diffstat (limited to '~fauno/transmission-remote-cli')
-rw-r--r--~fauno/transmission-remote-cli/PKGBUILD53
-rw-r--r--~fauno/transmission-remote-cli/python2.patch9
2 files changed, 62 insertions, 0 deletions
diff --git a/~fauno/transmission-remote-cli/PKGBUILD b/~fauno/transmission-remote-cli/PKGBUILD
new file mode 100644
index 000000000..869a2ebff
--- /dev/null
+++ b/~fauno/transmission-remote-cli/PKGBUILD
@@ -0,0 +1,53 @@
+# Maintainer: fauno <fauno@kiwwwi.com.ar>
+pkgname=transmission-remote-cli
+pkgver=0.10.4
+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=('transmission-daemon>=2.40: for local transmission management'
+ 'adns-python: Resolve IPs to host names'
+ 'python-geoip: Guess which country peers come from')
+makedepends=('git')
+conflicts=('transmission-remote-cli-git')
+replaces=('transmission-remote-cli-git')
+source=(http://repo.parabolagnulinux.org/other/${pkgname}-${pkgver}.tar.gz
+ python2.patch)
+md5sums=('df3cdde879275fbffb1af17872e9c860'
+ '6273609fb3a7294328aeaa526b76411c')
+
+_gitroot="http://github.com/fagga/transmission-remote-cli.git"
+_gitname="transmission-remote-cli"
+
+mksource() {
+ echo "Connecting to the GIT repository..."
+
+ if [ -d "$_gitname" ] ; then
+ pushd $_gitname
+ git -b 2.40 origin/2.40
+ git pull origin
+ echo "The local files are updated."
+ popd
+ else
+ git clone $_gitroot
+ cd $_gitroot
+ git checkout -b 2.40 origin/2.40
+ fi
+
+ echo "GIT checkout done or server timeout"
+
+ git archive --prefix=${pkgname}-${pkgver}/ | gzip > ${pkgname}-${pkgver}.tar.gz
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ msg "Starting make..."
+
+ patch -Np1 -i ${srcdir}/python2.patch
+
+ install -d ${pkgdir}/usr/bin/
+ install -D transmission-remote-cli.py ${pkgdir}/usr/bin/transmission-remote-cli
+
+}
diff --git a/~fauno/transmission-remote-cli/python2.patch b/~fauno/transmission-remote-cli/python2.patch
new file mode 100644
index 000000000..256b676f0
--- /dev/null
+++ b/~fauno/transmission-remote-cli/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 #