summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntero Mejr <antero@mailbox.org>2022-03-07 11:50:19 -0500
committerGuix Patches Tester <>2022-03-07 16:56:07 +0000
commite6a788807b9a9cf978dfd6422c0c7268c4f1c415 (patch)
tree8b5f8148d57e2fd04aab28ec6c6b617d76085d7f
parente7886fd6746267e26cf11628f96d8082680b496f (diff)
downloadguix-patches-e6a788807b9a9cf978dfd6422c0c7268c4f1c415.tar
guix-patches-e6a788807b9a9cf978dfd6422c0c7268c4f1c415.tar.gz
gnu: Add svkbd.series-11549
* gnu/packages/suckless.scm (svkbd): New variable.
-rw-r--r--gnu/packages/suckless.scm46
1 files changed, 46 insertions, 0 deletions
diff --git a/gnu/packages/suckless.scm b/gnu/packages/suckless.scm
index 708eb2c338..f75fd8054d 100644
--- a/gnu/packages/suckless.scm
+++ b/gnu/packages/suckless.scm
@@ -11,6 +11,7 @@
;;; Copyright © 2021 Raghav Gururajan <rg@raghavgururajan.name>
;;; Copyright © 2021 Alexandru-Sergiu Marton <brown121407@posteo.ro>
;;; Copyright © 2021 Nikolay Korotkiy <sikmir@disroot.org>
+;;; Copyright © 2022 Antero Mejr <antero@mailbox.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -1083,3 +1084,48 @@ There are formatting programs included to convert this TAB-separated format to
various other formats. There are also some programs and scripts included to
import and export OPML and to fetch, filter, merge and order feed items.")
(license license:isc)))
+
+(define-public svkbd
+ (package
+ (name "svkbd")
+ (version "0.4.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://dl.suckless.org/tools/svkbd-"
+ version ".tar.gz"))
+ (sha256
+ (base32 "0nhgmr38pk1a8zrcrxd1ygh0m843a3bdchkv8phl508x7vy63hpv"))))
+ (build-system gnu-build-system)
+ (native-inputs
+ `(("pkg-config" ,pkg-config)
+ ("glibc-utf8-locales" ,glibc-utf8-locales)))
+ (inputs
+ `(("freetype" ,freetype)
+ ("libx11" ,libx11)
+ ("libxtst" ,libxtst)
+ ("libxft" ,libxft)
+ ("libxinerama" ,libxinerama)))
+ (arguments
+ `(#:tests? #f
+ #:make-flags
+ (list (string-append "CC=" ,(cc-for-target))
+ (string-append "PREFIX=" %output))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (substitute* "config.mk"
+ (("/usr/local")
+ (assoc-ref outputs "out"))
+ (("/usr/X11R6")
+ (assoc-ref inputs "libx11"))
+ (("/usr/include/freetype2")
+ (string-append (assoc-ref inputs "freetype")
+ "/include/freetype2")))))
+ (delete 'configure)))) ; no configure script
+ (home-page "https://tools.suckless.org/x/svkbd/")
+ (synopsis "Virtual on-screen keyboard")
+ (description "svkbd is a simple virtual keyboard, intended to be used in
+environments, where no keyboard is available.")
+ (license license:expat)))