From 0e57b65ecc433a358d8b16f0c6360f1ce04ea7e4 Mon Sep 17 00:00:00 2001 From: Richard Kuhnt Date: Mon, 19 Jun 2017 12:11:20 +0200 Subject: [PATCH] curl: improve checkver and hash extraction --- curl.json | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/curl.json b/curl.json index be89f55c5e..dd27eee3c9 100644 --- a/curl.json +++ b/curl.json @@ -16,8 +16,8 @@ }, "bin": "bin\\curl.exe", "checkver": { - "url": "https://curl.haxx.se/download.html", - "re": "curl ([\\d.]+)" + "url": "https://api.bintray.com/packages/vszakats/generic/curl", + "jp": "$.latest_version" }, "suggest": { "cacert": [ @@ -36,9 +36,7 @@ } }, "hash": { - "url": "https://api.bintray.com/search/file?subject=vszakats&repo=generic&name=$basename", - "mode": "json", - "jp": "$.[0].sha256" + "url": "$url.sha256" } } }