gnu: Add compton-conf.
authorMeiyo Peng <meiyo.peng@gmail.com>
Thu, 18 Oct 2018 12:33:24 +0000 (20:33 +0800)
committer宋文武 <iyzsong@member.fsf.org>
Fri, 26 Oct 2018 13:41:38 +0000 (21:41 +0800)
* gnu/packages/lxqt.scm (compton-conf): New variable.

Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
gnu/packages/lxqt.scm

index 141cbaf..53405d5 100644 (file)
@@ -47,6 +47,7 @@
   #:use-module (gnu packages polkit)
   #:use-module (gnu packages pulseaudio)
   #:use-module (gnu packages qt)
+  #:use-module (gnu packages textutils)
   #:use-module (gnu packages xdisorg)
   #:use-module (gnu packages xorg))
 
@@ -900,6 +901,44 @@ LXDE.")
 
 ;; Extra
 
+(define-public compton-conf
+  (package
+    (name "compton-conf")
+    (version "0.4.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://github.com/lxqt/" name "/releases/download/"
+                           version "/" name "-" version ".tar.xz"))
+       (sha256
+        (base32 "0q3yx2a6wf8yahrwgvhmv9sd7gmrhid528vrqy04dg8m5cx1bjci"))))
+    (build-system cmake-build-system)
+    (inputs
+     `(("libconfig" ,libconfig)
+       ("qtbase" ,qtbase)))
+    (native-inputs
+     `(("lxqt-build-tools" ,lxqt-build-tools)
+       ("pkg-config" ,pkg-config)
+       ("qttools" ,qttools)))
+    (arguments
+     '(#:tests? #f                      ; no tests
+       #:configure-flags
+       ;; TODO: prefetch translations files from 'lxqt-l10n'.
+       '("-DPULL_TRANSLATIONS=NO")
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'patch-source
+           (lambda _
+             (substitute* '("autostart/CMakeLists.txt")
+               (("DESTINATION \"\\$\\{LXQT_ETC_XDG_DIR\\}")
+                "DESTINATION \"${CMAKE_INSTALL_PREFIX}/etc/xdg"))
+             #t)))))
+    (home-page "https://lxqt.org/")
+    (synopsis "GUI configuration tool for compton X composite manager")
+    (description "@code{compton-conf} is a configuration tool for X composite
+manager Compton.")
+    (license license:lgpl2.1+)))
+
 (define-public lximage-qt
   (package
     (name "lximage-qt")