gnu: libopenmpt: Remove 5.1-MiB static library.
authorTobias Geerinckx-Rice <me@tobias.gr>
Tue, 1 Sep 2020 16:30:57 +0000 (18:30 +0200)
committerTobias Geerinckx-Rice <me@tobias.gr>
Tue, 1 Sep 2020 16:36:59 +0000 (18:36 +0200)
* gnu/packages/audio.scm (libopenmpt)[arguments]: Add a
‘delete-static-libraries’ phase.

gnu/packages/audio.scm

index bd9071e..9447156 100644 (file)
@@ -311,7 +311,15 @@ Linux kernel.")
     (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)