guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#50847] [PATCH 2/5] gnu: Add libuinputplus.


From: Alexandr Vityazev
Subject: [bug#50847] [PATCH 2/5] gnu: Add libuinputplus.
Date: Mon, 27 Sep 2021 13:54:50 +0000

* gnu/packages/cpp.scm (libuinputplus): New variable.
---
 gnu/packages/cpp.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index e3b73b1612..26f933996c 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -1000,6 +1000,43 @@ provides a number of utilities to make coding with 
expected cleaner.")
       (description "@code{IODash} is a C++ library for POSIX operation 
systems.")
       (license license:expat))))
 
+(define-public libuinputplus
+  (package
+    (name "libuinputplus")
+    (version "0.2.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/YukiWorkshop/libuInputPlus";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "0sind2ghhy4h9kfkr5hsmhcq0di4ifwqyv4gac96rgj5mwvs33lp"))))
+    (build-system cmake-build-system)
+    (arguments
+     ;; No tests
+     `(#:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         ;; No rule to make target 'install' in version 0.2.1
+         (replace 'install
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (inc (string-append out "/include"))
+                    (lib (string-append out "/lib")))
+               (install-file "libuInputPlus.a" lib)
+               (with-directory-excursion "../source"
+                 (install-file "CommonIncludes.hpp" inc)
+                 (install-file "uInput.hpp" inc)
+                 (install-file "uInputSetup.hpp" inc))))))))
+    (home-page "https://github.com/YukiWorkshop/libuInputPlus";)
+    (synopsis "C++ library for the Linux uinput interface")
+    (description "@code{libuInputPlus} is a C++ library for the Linux
+uinput interface.")
+    (license license:expat)))
+
 (define-public magic-enum
   (package
     (name "magic-enum")
-- 
2.33.0



-- 

Alexandr Vityazev





reply via email to

[Prev in Thread] Current Thread [Next in Thread]