summaryrefslogtreecommitdiff
path: root/gnu/packages/bittorrent.scm
diff options
context:
space:
mode:
authorLeo Famulari <leo@famulari.name>2017-01-26 20:28:45 -0500
committerLeo Famulari <leo@famulari.name>2017-01-28 03:34:13 -0500
commite906f4e11670dcf4cef79080d85aa115ea4b1e6e (patch)
treec20747f6bcc8edabec63d090721843c1a126cb11 /gnu/packages/bittorrent.scm
parenta0885414f9ad9f0401c27497bfb505df13bdff35 (diff)
downloadpatches-e906f4e11670dcf4cef79080d85aa115ea4b1e6e.tar
patches-e906f4e11670dcf4cef79080d85aa115ea4b1e6e.tar.gz
gnu: Add tremc.
* gnu/packages/bittorrent.scm (tremc): New variable.
Diffstat (limited to 'gnu/packages/bittorrent.scm')
-rw-r--r--gnu/packages/bittorrent.scm45
1 files changed, 45 insertions, 0 deletions
diff --git a/gnu/packages/bittorrent.scm b/gnu/packages/bittorrent.scm
index 716d8b766a..a7294f38a8 100644
--- a/gnu/packages/bittorrent.scm
+++ b/gnu/packages/bittorrent.scm
@@ -2,6 +2,7 @@
;;; Copyright © 2014 Taylan Ulrich Bayirli/Kammer <taylanbayirli@gmail.com>
;;; Copyright © 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
+;;; Copyright © 2016, 2017 Leo Famulari <leo@famulari.name>
;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2016 Tomáš Čech <sleep_walker@gnu.org>
;;; Copyright © 2016 Tobias Geerinckx-Rice <me@tobias.gr>
@@ -25,6 +26,7 @@
(define-module (gnu packages bittorrent)
#:use-module (guix packages)
#:use-module (guix download)
+ #:use-module (guix git-download)
#:use-module (guix build-system gnu)
#:use-module (guix build-system python)
#:use-module (guix build-system glib-or-gtk)
@@ -172,6 +174,49 @@ XML-RPC over SCGI.")
(home-page "https://github.com/rakshasa/rtorrent")
(license l:gpl2+)))
+(define-public tremc
+ (let ((commit "401f2303c9b5a6e2e7b0808617d794576d4aa29e")
+ (revision "0"))
+ (package
+ (name "tremc")
+ (version (string-append "0.0.0-" revision "." (string-take commit 7)))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/louipc/tremc.git")
+ (commit commit)))
+ (sha256
+ (base32
+ "1h2720zn35iggmf9av65g119b0bhskwm1ng0zbkjryaf38nfzpin"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:tests? #f ; no test suite
+ #:phases
+ (modify-phases %standard-phases
+ ;; The software is just a Python script that must be
+ ;; copied into place.
+ (delete 'build)
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (bin (string-append out "/bin"))
+ (man (string-append out "/share/man/man1"))
+ ;; FIXME install zsh completions
+ (completions (string-append out "/etc/bash_completion.d")))
+ (install-file "tremc" bin)
+ (install-file "tremc.1" man)
+ (install-file
+ (string-append
+ "completion/bash/"
+ "transmission-remote-cli-bash-completion.sh")
+ completions)))))))
+ (synopsis "Console client for the Transmission BitTorrent daemon")
+ (description "Tremc is a console client, with a curses interface, for the
+Transmission BitTorrent daemon.")
+ (home-page "https://github.com/louipc/tremc")
+ (license l:gpl3+))))
+
(define-public transmission-remote-cli
(package
(name "transmission-remote-cli")