mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: Add spectacle-ocr-screenshot.
* gnu/packages/kde-systemtools.scm (spectacle-ocr-screenshot): New variable. Change-Id: I387830c8beafb391275ce721191effa2dc022f2b Signed-off-by: Zheng Junjie <z572@z572.online>
This commit is contained in:
parent
67199d9fe7
commit
c4afe965b5
1 changed files with 43 additions and 0 deletions
|
@ -23,17 +23,21 @@
|
||||||
(define-module (gnu packages kde-systemtools)
|
(define-module (gnu packages kde-systemtools)
|
||||||
#:use-module (guix build-system qt)
|
#:use-module (guix build-system qt)
|
||||||
#:use-module (guix download)
|
#:use-module (guix download)
|
||||||
|
#:use-module (guix git-download)
|
||||||
#:use-module ((guix licenses) #:prefix license:)
|
#:use-module ((guix licenses) #:prefix license:)
|
||||||
#:use-module (guix packages)
|
#:use-module (guix packages)
|
||||||
#:use-module (guix utils)
|
#:use-module (guix utils)
|
||||||
#:use-module (guix gexp)
|
#:use-module (guix gexp)
|
||||||
#:use-module (gnu packages)
|
#:use-module (gnu packages)
|
||||||
|
#:use-module (gnu packages aidc)
|
||||||
#:use-module (gnu packages compression)
|
#:use-module (gnu packages compression)
|
||||||
#:use-module (gnu packages freedesktop)
|
#:use-module (gnu packages freedesktop)
|
||||||
|
#:use-module (gnu packages image)
|
||||||
#:use-module (gnu packages kde)
|
#:use-module (gnu packages kde)
|
||||||
#:use-module (gnu packages kde-frameworks)
|
#:use-module (gnu packages kde-frameworks)
|
||||||
#:use-module (gnu packages kde-plasma)
|
#:use-module (gnu packages kde-plasma)
|
||||||
#:use-module (gnu packages linux)
|
#:use-module (gnu packages linux)
|
||||||
|
#:use-module (gnu packages ocr)
|
||||||
#:use-module (gnu packages pkg-config)
|
#:use-module (gnu packages pkg-config)
|
||||||
#:use-module (gnu packages qt)
|
#:use-module (gnu packages qt)
|
||||||
#:use-module (gnu packages glib)
|
#:use-module (gnu packages glib)
|
||||||
|
@ -435,6 +439,45 @@ This package is part of the KDE administration module.")
|
||||||
(description "Spectacle is a screenshot taking utility for the KDE.")
|
(description "Spectacle is a screenshot taking utility for the KDE.")
|
||||||
(license license:gpl2+)))
|
(license license:gpl2+)))
|
||||||
|
|
||||||
|
(define-public spectacle-ocr-screenshot
|
||||||
|
(package
|
||||||
|
(name "spectacle-ocr-screenshot")
|
||||||
|
(version "0.3.0")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/funinkina/spectacle-ocr-screenshot")
|
||||||
|
(commit version)))
|
||||||
|
(sha256
|
||||||
|
(base32 "06dyvv4h4m4j8cm3f7ivcczql26rfajkmw84qh7kik71f70qvwjw"))
|
||||||
|
(file-name (git-file-name name version))))
|
||||||
|
(build-system qt-build-system)
|
||||||
|
(arguments
|
||||||
|
(list #:qtbase qtbase
|
||||||
|
#:tests? #f ;no tests
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(replace 'configure
|
||||||
|
(lambda _
|
||||||
|
(invoke "qmake" (string-append "PREFIX=" #$output))))
|
||||||
|
(replace 'install
|
||||||
|
(lambda _
|
||||||
|
(install-file "spectacle-ocr-screenshot"
|
||||||
|
(string-append #$output "/bin")))))))
|
||||||
|
(native-inputs
|
||||||
|
(list pkg-config))
|
||||||
|
(inputs
|
||||||
|
(list leptonica
|
||||||
|
tesseract-ocr
|
||||||
|
zxing-cpp))
|
||||||
|
(home-page "https://github.com/funinkina/spectacle-ocr-screenshot")
|
||||||
|
(synopsis "Utility to extract text from Spectacle")
|
||||||
|
(description "This package provides an application that integrates with KDE
|
||||||
|
Spectacle screenshot tool with Tesseract OCR to extract text from screenshots
|
||||||
|
as well as QR codes.")
|
||||||
|
(license license:expat)))
|
||||||
|
|
||||||
(define-public yakuake
|
(define-public yakuake
|
||||||
(package
|
(package
|
||||||
(name "yakuake")
|
(name "yakuake")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue