Subject: Re: bug#34189: Acknowledgement ([PATCH] gnu: Add arcan.)

From: L p R n d n <[email-masked]>
Date: Thu, 24 Jan 2019 13:59:17 +0100

>From 79b429fb23aed7c19212000a58b1c87113d66597 Mon Sep 17 00:00:00 2001
From: Lprndn <[email-masked]>
Date: Thu, 24 Jan 2019 13:43:46 +0100
Subject: [PATCH] gnu: Add aclip.

* gnu/packages/arcan.scm (aclip): New variable.
---
 gnu/packages/arcan.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/arcan.scm b/gnu/packages/arcan.scm
index a3cdd0518..45f6329e5 100644
--- a/gnu/packages/arcan.scm
+++ b/gnu/packages/arcan.scm
@@ -248,3 +248,31 @@ all the way to full-blown desktop environments")
     (synopsis "Wayland protocol service for Arcan")
     (description "Wayland protocol service for Arcan")
     (license license:bsd-3)))
+
+(define-public aclip
+  (package
+    (name "aclip")
+    (version (package-version arcan))
+    (source (package-source arcan))
+    (build-system cmake-build-system)
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (inputs
+     `(("arcan" ,arcan)))
+    (arguments
+     `(#:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'configure 'chdir
+           (lambda _
+             (chdir "src/tools/aclip")
+             #t))
+         (add-after 'unpack 'fix-cmake-find-shmif
+           (lambda* (#:key inputs #:allow-other-keys)
+             (substitute* "src/platform/cmake/modules/Findarcan_shmif.cmake"
+               (("/usr/local") (string-append (assoc-ref inputs "arcan") "")))
+             #t)))))
+    (home-page "https://arcan-fe.com")
+    (synopsis "Clipboard manager for Arcan")
+    (description "Clipboard manager for Arcan")
+    (license license:bsd-3)))
-- 
2.19.2