summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntero Mejr <antero@mailbox.org>2022-08-11 15:11:05 -0400
committerGuix Patches Tester <>2022-08-11 20:14:25 +0100
commite19d26375f9cf55eaa1d9af0d4db4a05eba964c5 (patch)
treea4a2f2ec304cfaf4b944868c985321c0094662cf
parenta66b9063d1158f129e46ae0b99f1e7cbbc8c16b1 (diff)
downloadguix-patches-e19d26375f9cf55eaa1d9af0d4db4a05eba964c5.tar
guix-patches-e19d26375f9cf55eaa1d9af0d4db4a05eba964c5.tar.gz
gnu: Add pn.
* gnu/packages/messaging.scm (pn): New variable.
-rw-r--r--gnu/packages/messaging.scm31
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index 47798c3586..704feb1177 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -3446,4 +3446,35 @@ Discord.")
(home-page "https://github.com/taylordotfish/harmony")
(license license:gpl3+)))
+(define-public pn
+ (package
+ (name "pn")
+ (version "0.9.0")
+ (home-page "https://github.com/Orange-OpenSource/pn")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1lvzb0yixj7wmmqzsri20k9nn3gf06j0yjvmg2mi1zihywq7s4dx"))))
+ (build-system cmake-build-system)
+ (arguments
+ (list #:tests? #f ;no tests
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'sub-bin-path
+ (lambda _
+ (substitute* "CMakeLists.txt"
+ (("DESTINATION \\$\\{AWKLIBPATH\\}")
+ "DESTINATION bin")))))))
+ (inputs (list libphonenumber icu4c protobuf))
+ (synopsis "Command-line validation tool for phone numbers")
+ (description
+ "@code{pn} provides a command line tool that allows users to operate on
+phone numbers (get validity information, reformat them, or extract numbers from
+a text snippet), using @code{libphonenumber}.")
+ (license license:asl2.0)))
+
;;; messaging.scm ends here