Subject: [PATCH] gnu: Add abook.

From: Alexandru-Sergiu Marton <[email-masked]>
Date: Wed, 31 Mar 2021 21:14:28 +0300

* gnu/packages/mail.scm (abook): New variable.
---

This is not the latest version of the program, but was the latest stable on
that I could build. I'm having problems getting 0.6.1 building from git, but
this works fine.

 gnu/packages/mail.scm | 24 +++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index fdbbaf1784..97a81cab07 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -36,7 +36,7 @@
 ;;; Copyright © 2020 Michael Rohleder <[email-masked]>
 ;;; Copyright © 2020 Alexey Abramov <[email-masked]>
 ;;; Copyright © 2020 Tim Gesthuizen <[email-masked]>
-;;; Copyright © 2020 Alexandru-Sergiu Marton <[email-masked]>
+;;; Copyright © 2020, 2021 Alexandru-Sergiu Marton <[email-masked]>
 ;;; Copyright © 2020 Oleg Pykhalov <[email-masked]>
 ;;; Copyright © 2020 B. Wilson <[email-masked]>
 ;;; Copyright © 2020 divoplade <[email-masked]>
@@ -4296,3 +4296,25 @@ black lists.  Each message is analysed by Rspamd and given a spam
 score.")
     (home-page "https://www.rspamd.com/")
     (license license:asl2.0)))
+
+(define-public abook
+  (package
+    (name "abook")
+    (version "0.5.6")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://downloads.sourceforge.net/project/abook/abook/"
+                           version "/abook-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0vkm8jgsw2lkn2jrsvnbsm27l2llb8mf2k9ah50k7bcl38qzcih6"))))
+    (build-system gnu-build-system)
+    (inputs
+     `(("ncurses" ,ncurses)
+       ("readline" ,readline)))
+    (synopsis "Text-based addressbook")
+    (description "Abook is a text-based addressbook program designed to use
+with mutt mail client.")
+    (home-page "https://abook.sourceforge.io/")
+    (license license:gpl2)))
-- 
2.31.0