Subject: [PATCH] zsign: New package

From: Jacob Hrbek <[email-masked]>
Date: Sat, 08 Oct 2022 22:30:40 +0000

---
 gnu/packages/crypto.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm
index 074fa5bf31..f458e6a264 100644
--- a/gnu/packages/crypto.scm
+++ b/gnu/packages/crypto.scm
@@ -25,6 +25,7 @@
 ;;; Copyright © 2022 Allan Adair <[email-masked]>
 ;;; Copyright © 2022 Maxim Cournoyer <[email-masked]>
 ;;; Copyright © 2022 Denis 'GNUtoo' Carikli <[email-masked]>
+;;; Copyright © 2022 Jacob 'Kreyren' Hrbek <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1739,3 +1740,33 @@ (define-public keychain
 configured to start gpg-agent.")
     (home-page "https://www.funtoo.org/Keychain")
     (license license:gpl2)))
+
+(define-public zsign
+  (let ((commit "27016df1150eeaf27e8d8c148ccb3cad10d31e73"))
+    (package
+      (name "zsign")
+      (version (git-version "0.0.0" "0" commit)) ;no release tag
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/zhlynn/zsign")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "1vszwpxaaxs0iy7mrkn6wmjdv9nb4nmwzki5i7zgjayiczshjx8d"))))
+      (build-system cmake-build-system)
+      (arguments
+       `(#:phases (modify-phases %standard-phases
+                    (delete 'check) ;Seemingly no test suite
+                    (replace 'install
+                      (lambda _
+                        (install-file "zsign"
+                                      (string-append %output "/bin/")) #t)))))
+      (native-inputs (list openssl zlib))
+      (synopsis
+       "Solution for signature of application archive files (.ipa) for iDevices")
+      (description
+       "Usually used by cross-platform developers and jailbreakers to sign their applications")
+      (home-page "https://github.com/zhlynn/zsign")
+      (license license:bsd-3))))
--
2.37.3