gnu: libsrtp: Update to 2.6.0.

* gnu/packages/telephony.scm (libsrtp): Update to 2.6.0.
[phases]: Use gexps.  Remove trailing #t.

Change-Id: Ie059562f8744e62e6592193c562625fa393420ea
This commit is contained in:
Maxim Cournoyer 2024-06-09 06:56:21 -04:00 committed by Maxim Cournoyer
parent 3bb8f63e20
commit f9e772d692
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -452,34 +452,34 @@ internet.")
(define-public libsrtp
(package
(name "libsrtp")
(version "2.4.2")
(version "2.6.0")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/cisco/libsrtp")
(commit (string-append "v" version))))
(url "https://github.com/cisco/libsrtp")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"1gswpjm4jacfxmgglbf8hxi3yzsag4drk4q943p0wkmv21zj8l78"))))
"1vjdkss076ihbshc83v11c6qxq8mfqi4c26rl1a96kqa9dpgjqmx"))))
(native-inputs
(list psmisc ;some tests require 'killall'
(list psmisc ;some tests require 'killall'
procps))
(build-system gnu-build-system)
(arguments
'(#:test-target "runtest"
#:phases (modify-phases %standard-phases
(add-after 'build 'build-shared
(lambda* (#:key (make-flags '()) #:allow-other-keys)
;; Build the shared library separately because
;; the test runner requires a static build.
(apply invoke "make" "shared_library" make-flags)
#t))
(add-after 'install 'remove-static-library
(lambda* (#:key outputs #:allow-other-keys)
(delete-file (string-append (assoc-ref outputs "out")
"/lib/libsrtp2.a"))
#t)))))
(list
#:test-target "runtest"
#:phases
#~(modify-phases %standard-phases
(add-after 'build 'build-shared
(lambda* (#:key make-flags #:allow-other-keys)
;; Build the shared library separately because
;; the test runner requires a static build.
(apply invoke "make" "shared_library" make-flags)))
(add-after 'install 'remove-static-library
(lambda _
(delete-file (string-append #$output
"/lib/libsrtp2.a")))))))
(synopsis "Secure RTP (SRTP) Reference Implementation")
(description
"This package provides an implementation of the Secure Real-time Transport