unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Antero Mejr via Guix-patches via <guix-patches@gnu.org>
To: 50805@debbugs.gnu.org
Cc: Antero Mejr <antero@mailbox.org>
Subject: [bug#50805] [PATCH] gnu: Add svkbd.
Date: Sat, 25 Sep 2021 14:53:11 -0400	[thread overview]
Message-ID: <20210925185311.9140-1-antero@mailbox.org> (raw)

* gnu/packages/suckless.scm (svkbd): New variable.
---
 gnu/packages/suckless.scm | 45 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/gnu/packages/suckless.scm b/gnu/packages/suckless.scm
index b24eced379..dc313c10e3 100644
--- a/gnu/packages/suckless.scm
+++ b/gnu/packages/suckless.scm
@@ -901,3 +901,48 @@ chat output in the background.")
 Single daemon and configuration file.  Log to stdout or syslog.  No mail
 support.")
     (license license:expat)))
+
+(define-public svkbd
+  (package
+    (name "svkbd")
+    (version "0.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://dl.suckless.org/tools/svkbd-"
+                           version ".tar.gz"))
+       (sha256
+        (base32 "0pydmf7frbn8b3zr2is212npbafkyrbs8qxg2ivwjvqwzvkmdm4g"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("pkg-config" ,pkg-config)
+       ("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)))
-- 
2.30.2





             reply	other threads:[~2021-09-25 18:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-25 18:53 Antero Mejr via Guix-patches via [this message]
2021-11-05  6:55 ` [bug#50805] logo [PATCH] gnu: Add svkbd phodina via Guix-patches via
2022-03-07 16:50 ` [bug#50805] " Antero Mejr via Guix-patches via
2022-05-29  2:10 ` Antero Mejr via Guix-patches via
2022-08-05  5:31   ` bug#50805: " 宋文武 via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210925185311.9140-1-antero@mailbox.org \
    --to=guix-patches@gnu.org \
    --cc=50805@debbugs.gnu.org \
    --cc=antero@mailbox.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).