;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2017, 2019 Hartmut Goebel ;;; Copyright © 2020, 2021 Tobias Geerinckx-Rice ;;; Copyright © 2021 Zheng Junjie <873216071@qq.com> ;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or (at ;;; your option) any later version. ;;; ;;; GNU Guix is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with GNU Guix. If not, see . (define-module (gnu packages kde-utils) #:use-module (guix build-system qt) #:use-module (guix download) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (gnu packages) #:use-module (gnu packages backup) #:use-module (gnu packages cmake) #:use-module (gnu packages compression) #:use-module (gnu packages gnome) #:use-module (gnu packages imagemagick) #:use-module (gnu packages pkg-config) #:use-module (gnu packages kde) #:use-module (gnu packages kde-frameworks) #:use-module (gnu packages kde-plasma) #:use-module (gnu packages qt) #:use-module (gnu packages samba) #:use-module (gnu packages xorg)) (define-public ark (package (name "ark") (version "20.04.1") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/ark-" version ".tar.xz")) (sha256 (base32 "0g5bfa1lc7mhrc2ngd4ldf33dpwr7gqrj95kp897pf632wwj23iw")) ;; The libarchive package in Guix does not support ;; xar; disable related tests. (patches (search-patches "ark-skip-xar-test.patch")))) (build-system qt-build-system) (arguments `(#:phases (modify-phases %standard-phases (add-before 'check 'start-xserver ;; adddialogtest requires DISPLAY. (lambda* (#:key inputs #:allow-other-keys) (let ((xorg-server (assoc-ref inputs "xorg-server"))) (setenv "HOME" (getcwd)) (system (format #f "~a/bin/Xvfb :1 &" xorg-server)) (setenv "DISPLAY" ":1")))) (add-after 'install 'wrap-executable (lambda* (#:key inputs outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) (lrzip (assoc-ref inputs "lrzip")) (lzop (assoc-ref inputs "lzop")) (p7zip (assoc-ref inputs "p7zip")) (unzip (assoc-ref inputs "unzip")) (zip (assoc-ref inputs "zip")) (zstd (assoc-ref inputs "zstd"))) (wrap-program (string-append out "/bin/ark") `("PATH" suffix ,(map (lambda (p) (string-append p "/bin")) (list lrzip lzop p7zip unzip zip zstd)))))))))) (native-inputs (list extra-cmake-modules pkg-config kdoctools xorg-server)) (inputs (list breeze-icons karchive kconfig kcrash kdbusaddons khtml ki18n kio kitemmodels kparts kpty kservice kwidgetsaddons libarchive libzip qtbase-5 zlib ;; Command line tools used by Ark. lrzip lzop p7zip unzip zip zstd)) (home-page "https://apps.kde.org/en/ark") (synopsis "Graphical archiving tool") (description "Ark is a graphical file compression/decompression utility with support for multiple formats, including tar, gzip, bzip2, rar and zip, as well as CD-ROM images.") (license license:gpl2+))) (define-public kate (package (name "kate") (version "20.04.1") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/kate-" version ".tar.xz")) (sha256 (base32 "0nrby307syrqlxrf9lwdzc9c15ifw47418qwszqwg345ma2pww7i")))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules kdoctools)) (inputs (list kactivities kconfig kcrash kdbusaddons kguiaddons ki18n kiconthemes kitemmodels threadweaver knewstuff kio kjobwidgets kparts ktexteditor kwallet plasma-framework kwindowsystem kxmlgui oxygen-icons ;; default icon set qtbase-5 qtscript)) (arguments `(#:tests? #f ;; 2/7 tests fail #:phases (modify-phases %standard-phases (add-before 'check 'check-setup (lambda _ ;; make Qt render "offscreen", required for tests (setenv "QT_QPA_PLATFORM" "offscreen") (setenv "XDG_CACHE_HOME" "/tmp/xdg-cache") #t))))) (home-page "https://kate-editor.org/") (synopsis "Multi-document, multi-view text editor") (description "Kate is a powerful text editor that can open multiple files simultaneously. With a built-in terminal, syntax highlighting, and tabbed sidebar, it performs as a lightweight but capable development environment. Kate's many tools, plugins, and scripts make it highly customizable. Kate's features include: @itemize @item Multiple saved sessions, each with numerous files @item Scriptable syntax highlighting, indentation, and code-folding @item Configurable templates and text snippets @item Symbo-rw-r--r--ChangeLog163logplainabout -rw-r--r--HACKING748logplainabout -rw-r--r--Makefile.am34960logplainabout -rw-r--r--NEWS367448logplainabout -rw-r--r--README4886logplainabout -rw-r--r--ROADMAP3237logplainabout -rw-r--r--THANKS2381logplainabout -rw-r--r--TODO4360logplainabout -rwxr-xr-xbootstrap906logplainabout d---------build-aux644logplain -rw-r--r--config-daemon.ac4743logplainabout -rw-r--r--configure.ac8774logplainabout d---------doc452logplain d---------etc844logplain -rw-r--r--gnu.scm5289logplainabout d---------gnu697logplain -rw-r--r--guix.scm1357logplainabout d---------guix3201logplain d---------m435logplain d---------nix282logplain d---------po96logplain d---------scripts35logplain d---------tests4443logplain kidletime knotifications knotifyconfig ktextwidgets kwindowsystem kxmlgui oxygen-icons ;; default icon set qtbase-5)) (home-page "https://kde.org/applications/utilities/org.kde.rsibreak") (synopsis "Assists in the Recovery and Prevention of Repetitive Strain Injury") (description "Repetitive Strain Injury is an illness which can occur as a result of working with a mouse and keyboard. This utility can be used to remind you to take a break now and then.") (license ;; GPL for programs, FDL for documentation (list license:gpl2+ license:fdl1.2+)))) (define-public smb4k (package (name "smb4k") (version "3.0.6") (source (origin (method url-fetch) (uri (string-append "https://sourceforge.net/projects/smb4k/files/" version "/smb4k-" version ".tar.xz/download")) (sha256 (base32 "0hz6nfd845bykf78s4g2qs77szl96gy6g8rpg44pqd39a0k0xbh7")))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules kdoctools)) (inputs (list kauth kconfig kconfigwidgets kcompletion kcoreaddons kcrash kdbusaddons ki18n kiconthemes kio kjobwidgets knotifications knotifyconfig ktextwidgets kwallet kwidgetsaddons kwindowsystem kxmlgui samba oxygen-icons ;; default icon set plasma-framework qtbase-5 qtdeclarative solid)) (home-page "https://kde.org/applications/utilities/org.kde.smb4k") (synopsis "Samba (SMB) share advanced browser") (description "Smb4K is an network neighborhood browser for the KDE Software Compilation and a frontend to the programs of the Samba software suite. Features: @itemize @item Scanning for (active) workgroups, hosts, and shares @item Support of the CIFS (Linux) and SMBFS (FreeBSD) file system @item Mounting and unmounting of shares (using the KAuth framework) @item Access to the files of a mounted share using a file manager or terminal @item Auto-detection of external mounts and unmounts @item Remounting of previously used shares on program start @item Miscellaneous infos about remote network items and mounted shares @item Network search @item WINS server support @item Preview of the contents of a share @item Several methods to look up the initial list of workgroups and domains @item Default login @item Special handling of homes shares @item Ability to bookmark favorite shares and organize them in groups @item System tray widget @item Support of advanced Samba options @item Support of printer shares @item KWallet support @item Synchronization of a remote share with a local copy and vice versa @item Ability to define custom options for individual servers and shares @item Laptop support through the Solid hardware device framework @end itemize") (license license:gpl2+))) (define-public sweeper (package (name "sweeper") (version "20.04.1") (source (origin (method url-fetch) (uri (string-append "mirror://kde/stable/release-service/" version "/src/sweeper-" version ".tar.xz")) (sha256 (base32 "1az3c2khnh51bbmqpamj4p26d3a0ff4l5rd3vcrylg94mk7wgh59")))) (build-system qt-build-system) (native-inputs (list extra-cmake-modules kdoctools)) (inputs (list kactivities-stats kbookmarks kcrash kconfig kconfigwidgets kcoreaddons ki18n kio ktextwidgets kxmlgui oxygen-icons ;; default icon set qtbase-5)) (home-page "https://kde.org/applications/utilities/org.kde.sweeper") (synopsis "Temporary file and history cleaner") (description " Sweeper helps to clean unwanted traces the user leaves on the system and to regain disk space removing unused temporary files. It can quickly remove temporary information, such as web page cookies, browser history, or the list of recently-opened documents. It helps provide additional privacy on a system shared between multiple users.") (license license:lgpl2.0+ )))