From 771fd649a34bde996321219f6226c9b89fe7f4e3 Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Fri, 25 Nov 2022 13:59:45 +0800 Subject: [PATCH] rosenthal: Add qbittorrent-enhanced-edition. * rosenthal/packages/bittorrent.scm: New file. (qbittorrent-enhanced-edition): New variable. --- rosenthal/packages/bittorrent.scm | 53 +++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 rosenthal/packages/bittorrent.scm diff --git a/rosenthal/packages/bittorrent.scm b/rosenthal/packages/bittorrent.scm new file mode 100644 index 0000000..bf5c700 --- /dev/null +++ b/rosenthal/packages/bittorrent.scm @@ -0,0 +1,53 @@ +;; SPDX-FileCopyrightText: 2022 Hilton Chain +;; +;; SPDX-License-Identifier: GPL-3.0-or-later + +(define-module (rosenthal packages bittorrent) + #:use-module (guix build-system cmake) + #:use-module (guix gexp) + #:use-module (guix git-download) + #:use-module (guix packages) + #:use-module (guix utils) + #:use-module (gnu packages bittorrent) + #:use-module (gnu packages qt)) + +(define-public qbittorrent-enhanced-edition + (let ((base qbittorrent)) + (package + (inherit base) + (name "qbittorrent-enhanced-edition") + (version "4.4.5.10") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/c0re100/qBittorrent-Enhanced-Edition") + (commit (string-append "release-" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0n1cidcricy5crzxy69z11ngvb0hy2x14nrhj100110knlq48hny")))) + ;; REVIEW: QT6 option only added to CMake rules at the moment. + (build-system cmake-build-system) + (arguments + (list #:tests? #f ;no tests + #:configure-flags + #~(list "-DQT6=ON"))) + (native-inputs + (modify-inputs (package-native-inputs base) + (replace "qttools" qttools))) + (inputs + (modify-inputs (package-inputs base) + (replace "qtbase" qtbase) + (replace "qtsvg-5" qtsvg))) + (home-page "https://github.com/c0re100/qBittorrent-Enhanced-Edition") + (description + "qBittorrent Enhanced is a bittorrent client based on qBittorrent with +the following features: + +@itemize +@item Auto Ban Xunlei, QQ, Baidu, Xfplay, DLBT and Offline downloader +@item Auto Ban Unknown Peer from China Option (Default: OFF) +@item Auto Update Public Trackers List (Default: OFF) +@item Auto Ban BitTorrent Media Player Peer Option (Default: OFF) +@item Peer whitelist/blacklist +@end itemize\n"))))