[bug#37589,v2,11/25] gnu: xfce: Add xfce4-calculator-plugin
diff mbox series

Message ID 20191003193845.7108-11-grumbel@gmail.com
State New
Headers show
Series
  • [bug#37589,v2,01/25] gnu: xfce: Add xfce4-wavelan-plugin
Related show

Commit Message

Ingo Ruhnke Oct. 3, 2019, 7:38 p.m. UTC
* gnu/packages/xfce.scm: Add xfce4-calculator-plugin.
---
 gnu/packages/xfce.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

Patch
diff mbox series

diff --git a/gnu/packages/xfce.scm b/gnu/packages/xfce.scm
index 148aa444c3..8d6ee2e39c 100644
--- a/gnu/packages/xfce.scm
+++ b/gnu/packages/xfce.scm
@@ -1314,6 +1314,33 @@  watch your every step.")
 and a calendar appears when you left-click on it.")
     (license gpl2+)))
 
+(define-public xfce4-calculator-plugin
+  (package
+   (name "xfce4-calculator-plugin")
+   (version "0.7.0")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "http://archive.xfce.org/src/panel-plugins/"
+                                  name "/" (version-major+minor version) "/"
+                                  name "-" version ".tar.bz2"))
+              (sha256
+               (base32
+                "1scx7z5ijg2fpcqrzv1nxhpj9vrqic7pyghig70f2n5hgaaanl3v"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("intltool" ,intltool)
+       ("pkg-config" ,pkg-config)))
+    (inputs
+     `(("libxfce4ui" ,libxfce4ui)
+       ("xfce4-panel" ,xfce4-panel)))
+    (home-page
+     "https://goodies.xfce.org/projects/panel-plugins/xfce4-calculator-plugin")
+    (synopsis "Calculator for the Xfce panel")
+    (description "This plugin is a calculator for the Xfce4 panel.  It
+supports common mathematical operators (+, -, *, /, ^) with usual
+precedence rules, and the following functions and common constants.")
+    (license gpl2+)))
+
 (define-public xfce4-embed-plugin
   (package
    (name "xfce4-embed-plugin")