(package
    (name "libmad")
    (version "0.15.1b")
    (homepage "https://www.underbit.com/products/mad/")
    (dependencies make)
    (src (tar
        (url "https://downloads.sourceforge.net/mad/libmad-0.15.1b.tar.gz")
        (dir "libmad-0.15.1b")
        (blake3 "709ab5ff15f963ed5301ab164f621c6a5bf06a8b7db4b953bb604573735b97ee")))
    (build
        (shell "./configure --prefix=/usr")
        (shell "sed -i 's/^CFLAGS =.*/CFLAGS = -Wall -g -O/' Makefile")
        (make)))
