guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: argon2: Install pkgconfig file.


From: Clément Lassieur
Subject: 01/01: gnu: argon2: Install pkgconfig file.
Date: Thu, 16 Aug 2018 11:18:59 -0400 (EDT)

snape pushed a commit to branch master
in repository guix.

commit 037d1851116fed5e9bf901abe923bff49078e2dd
Author: Amirouche <address@hidden>
Date:   Thu Aug 9 21:32:38 2018 +0200

    gnu: argon2: Install pkgconfig file.
    
    * gnu/packages/password-utils.scm (argon2)[arguments]: Patch libargon2.pc.
    Add phase to install it.
    
    Signed-off-by: Clément Lassieur <address@hidden>
---
 gnu/packages/password-utils.scm | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm
index 06b2873..b965369 100644
--- a/gnu/packages/password-utils.scm
+++ b/gnu/packages/password-utils.scm
@@ -20,6 +20,7 @@
 ;;; Copyright © 2018 Thomas Sigurdsen <address@hidden>
 ;;; Copyright © 2018 Arun Isaac <address@hidden>
 ;;; Copyright © 2018 Pierre Neidhardt <address@hidden>
+;;; Copyright © 2018 Amirouche Boubekki <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -461,8 +462,18 @@ through the pass command.")
              (let ((out (assoc-ref outputs "out")))
                (substitute* "Makefile"
                  (("PREFIX = /usr") (string-append "PREFIX = " out)))
+               (substitute* "libargon2.pc"
+                 (("prefix=/usr") (string-append "prefix=" out))
+                 (("@HOST_MULTIARCH@") "")
+                 (("@UPSTREAM_VER@") ,version))
                #t)))
-         (delete 'configure))))
+         (delete 'configure)
+         (add-after 'install 'install-argon2.pc
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let ((out (assoc-ref outputs "out")))
+               (install-file "libargon2.pc"
+                             (string-append out "/lib/pkgconfig"))
+               #t))))))
     (home-page "https://www.argon2.com/";)
     (synopsis "Password hashing library")
     (description "Argon2 provides a key derivation function that was declared



reply via email to

[Prev in Thread] Current Thread [Next in Thread]