gnu: libopenmpt: Remove 5.1-MiB static library.

* gnu/packages/audio.scm (libopenmpt)[arguments]: Add a
‘delete-static-libraries’ phase.
This commit is contained in:
Tobias Geerinckx-Rice 2020-09-01 18:30:57 +02:00
parent 2933e4d465
commit 2c6b6d7991
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -311,7 +311,15 @@ (define-public libopenmpt
(arguments
`(#:configure-flags
(list (string-append "--docdir=" (assoc-ref %outputs "out")
"/share/doc/" ,name "-" ,version))))
"/share/doc/" ,name "-" ,version))
#:phases
(modify-phases %standard-phases
(add-after 'install 'delete-static-libraries
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(lib (string-append out "/lib")))
(for-each delete-file (find-files lib "\\.a$"))
#t))))))
(native-inputs
`(("doxygen" ,doxygen)
("perl" ,perl)