package("dr_wav")
    set_kind("library", {headeronly = true})
    set_homepage("https://github.com/mackron/dr_libs")
    set_description("Single file audio decoding libraries for C/C++.")
    set_license("MIT")

    set_urls("https://github.com/mackron/dr_libs.git", {submodules = false})
    add_versions("0.14.1", "3141b54b6b0067d15c4a3ec0877f2141a2a11347")
    add_versions("0.13.17", "660795b2834aebb2217c9849d668b6e4bd4ef810")
    add_versions("0.13.16", "4ec70a37c4450b021a6653f0813f1b9ceaae65fb")
    add_versions("0.13.13", "9eed1be421749ba68a87e5b4c3b10858f8580689")
    add_versions("0.13.12", "d35a3bc5efd02455d98cbe12b94647136f09b42d")
    add_versions("0.13.11", "e07e2b8264da5fa1331a0ca3d30a3606084c311f")
    add_versions("0.13.10", "dbbd08d81fd2b084c5ae931531871d0c5fd83b87")
    add_versions("0.13.8", "4b3d07849537ce0b71b22180c0b1335eacc6e9be")
    add_versions("0.12.19", "46f149034a9f27e873d2c4c6e6a34ae4823a2d8d")

    on_install(function (package)
        os.cp("dr_wav.h", package:installdir("include"))
    end)

    on_test(function (package)
        assert(package:has_cfuncs("drwav_init_ex", {includes = "dr_wav.h"}))
    end)
