{
    "version": "1.0.28",
    "description": "A C library for reading and writing files containing sampled sound through one standard library interface.",
    "homepage": "http://www.mega-nerd.com/libsndfile/",
    "license": "LGPL-2.1-only|LGPL-3.0-only",
    "architecture": {
        "64bit": {
            "url": "http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.28-w64.zip",
            "hash": "b885e97c797c39127d7d252be0da704a8bbdb97948b562d95cd5b8821d2b42ba"
        },
        "32bit": {
            "url": "http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.28-w32.zip",
            "hash": "a73e1a8f87207e121a78e7cfbfe758d3ad15a28a37e4ca0e96d43348d53a2a1f"
        }
    },
    "installer": {
        "script": [
            "$current_dir = if (get_config NO_JUNCTIONS) { $dir } else { \"$(appdir $app $global)\\current\" }",
            "$pcdir = \"$current_dir\\lib\\pkgconfig\"",
            "",
            "# future sessions",
            "$null, $currpath = Split-PathLikeEnvVar -Pattern $pcdir -Path (Get-EnvVar -Name 'PKG_CONFIG_PATH' -Global:$global)",
            "Set-EnvVar -Name 'PKG_CONFIG_PATH' -Value \"$pcdir;$currpath\" -Global:$global",
            "",
            "# this session",
            "$null, $env:PKG_CONFIG_PATH = Split-PathLikeEnvVar -Pattern $pcdir -Path $env:PKG_CONFIG_PATH",
            "$env:PKG_CONFIG_PATH = \"$pcdir;$env:PKG_CONFIG_PATH\""
        ]
    },
    "uninstaller": {
        "script": [
            "$current_dir = if (get_config NO_JUNCTIONS) { $dir } else { \"$(appdir $app $global)\\current\" }",
            "$pcdir = \"$current_dir\\lib\\pkgconfig\"",
            "",
            "# future sessions",
            "$was_in_path, $newpath = Split-PathLikeEnvVar -Pattern $pcdir -Path (Get-EnvVar -Name 'PKG_CONFIG_PATH' -Global:$global)",
            "if($was_in_path) {",
            "    Write-Host \"Removing $(friendly_path $pcdir) from your path.\"",
            "    Set-EnvVar -Name 'PKG_CONFIG_PATH' -Value $newpath -Global:$global",
            "}",
            "",
            "# current session",
            "$was_in_path, $newpath = Split-PathLikeEnvVar -Pattern $pcdir -Path $env:PKG_CONFIG_PATH",
            "if($was_in_path) { $env:PKG_CONFIG_PATH = $newpath }"
        ]
    },
    "bin": [
        "bin\\sndfile-cmp.exe",
        "bin\\sndfile-concat.exe",
        "bin\\sndfile-convert.exe",
        "bin\\sndfile-deinterleave.exe",
        "bin\\sndfile-info.exe",
        "bin\\sndfile-interleave.exe",
        "bin\\sndfile-metadata-get.exe",
        "bin\\sndfile-metadata-set.exe",
        "bin\\sndfile-play.exe",
        "bin\\sndfile-salvage.exe"
    ],
    "checkver": "\"files/libsndfile-([\\d.]+)-w64-setup\\.exe\"",
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "http://www.mega-nerd.com/libsndfile/files/libsndfile-$version-w64.zip"
            },
            "32bit": {
                "url": "http://www.mega-nerd.com/libsndfile/files/libsndfile-$version-w32.zip"
            }
        }
    }
}
