From 30eaff5c9da46387de0e77ffe236b4f8610127a6 Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Thu, 1 Sep 2011 16:04:41 -0300 Subject: ~fauno/transmission-remote-cli-2011091-2 --- ~fauno/transmission-remote-cli-git/PKGBUILD | 48 ---------------------- ~fauno/transmission-remote-cli-git/python2.patch | 9 ----- ~fauno/transmission-remote-cli/PKGBUILD | 51 ++++++++++++++++++++++++ ~fauno/transmission-remote-cli/python2.patch | 9 +++++ 4 files changed, 60 insertions(+), 57 deletions(-) delete mode 100644 ~fauno/transmission-remote-cli-git/PKGBUILD delete mode 100644 ~fauno/transmission-remote-cli-git/python2.patch create mode 100644 ~fauno/transmission-remote-cli/PKGBUILD create mode 100644 ~fauno/transmission-remote-cli/python2.patch (limited to '~fauno') diff --git a/~fauno/transmission-remote-cli-git/PKGBUILD b/~fauno/transmission-remote-cli-git/PKGBUILD deleted file mode 100644 index 3e513edd7..000000000 --- a/~fauno/transmission-remote-cli-git/PKGBUILD +++ /dev/null @@ -1,48 +0,0 @@ -# Maintainer: fauno -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 deleted file mode 100644 index 256b676f0..000000000 --- a/~fauno/transmission-remote-cli-git/python2.patch +++ /dev/null @@ -1,9 +0,0 @@ -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 # diff --git a/~fauno/transmission-remote-cli/PKGBUILD b/~fauno/transmission-remote-cli/PKGBUILD new file mode 100644 index 000000000..9a93c431f --- /dev/null +++ b/~fauno/transmission-remote-cli/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: fauno +pkgname=transmission-remote-cli +pkgver=20110901 +pkgrel=2 +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') +conflicts=('transmission-remote-cli-git') +replaces=('transmission-remote-cli-git') +source=(http://repo.parabolagnulinux.org/other/${pkgname}-${pkgver}.tar.gz + python2.patch) +md5sums=('1a087e384b413577f9d49917fd8eaab5' + '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 pull origin + echo "The local files are updated." + popd + else + git clone $_gitroot + fi + + echo "GIT checkout done or server timeout" + + tar czf ${pkgname}-$(date +%Y%m%d).tar.gz ${_gitname}/ +} + +build() { + cd "${srcdir}/${_gitname}" + 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 + +} + +md5sums=('df3cdde879275fbffb1af17872e9c860' + '6273609fb3a7294328aeaa526b76411c') 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 # -- cgit v1.2.3-54-g00ecf