|
|
|
@ -1,32 +1,31 @@ |
|
|
|
|
package("go") |
|
|
|
|
|
|
|
|
|
set_kind("binary") |
|
|
|
|
set_homepage("https://golang.org/") |
|
|
|
|
set_description("The Go Programming Language") |
|
|
|
|
|
|
|
|
|
if is_host("windows") then |
|
|
|
|
if is_arch("x64") then |
|
|
|
|
set_urls("https://dl.google.com/go/go$(version).windows-amd64.zip") |
|
|
|
|
add_versions("1.11", "29f9291270f0b303d0b270f993972ead215b1bad3cc674a0b8a09699d978aeb4") |
|
|
|
|
if os.arch() == "x64" then |
|
|
|
|
set_urls("https://go.dev/dl/go$(version).windows-amd64.zip") |
|
|
|
|
add_versions("1.17.6", "5bf8f87aec7edfc08e6bc845f1c30dba6de32b863f89ae46553ff4bbcc1d4954") |
|
|
|
|
else |
|
|
|
|
set_urls("https://dl.google.com/go/go$(version).windows-386.zip") |
|
|
|
|
add_versions("1.11", "d3279f0e3d728637352eff0aa1e11268a0eb01f13644bcbce1c066139f5a90db") |
|
|
|
|
set_urls("https://go.dev/dl/go$(version).windows-386.zip") |
|
|
|
|
add_versions("1.17.6", "3809c4e40482ff047200c8b1e22a43a2c9c79b53ef540668d2b00f7228f093aa") |
|
|
|
|
end |
|
|
|
|
elseif is_host("linux") then |
|
|
|
|
if is_arch("x86_64") then |
|
|
|
|
set_urls("https://dl.google.com/go/go$(version).linux-amd64.tar.gz") |
|
|
|
|
add_versions("1.11", "b3fcf280ff86558e0559e185b601c9eade0fd24c900b4c63cd14d1d38613e499") |
|
|
|
|
elseif is_arch("i386") then |
|
|
|
|
set_urls("https://dl.google.com/go/go$(version).linux-386.tar.gz") |
|
|
|
|
add_versions("1.11", "1a91932b65b4af2f84ef2dce10d790e6a0d3d22c9ea1bdf3d8c4d9279dfa680e") |
|
|
|
|
elseif is_arch("arm*") then |
|
|
|
|
set_urls("https://dl.google.com/go/go$(version).linux-armv6l.tar.gz") |
|
|
|
|
add_versions("1.11", "8ffeb3577d8ca5477064f1cb8739835973c866487f2bf81df1227eaa96826acd") |
|
|
|
|
if os.arch() == "x86_64" then |
|
|
|
|
set_urls("https://go.dev/dl/go$(version).linux-amd64.tar.gz") |
|
|
|
|
add_versions("1.17.6", "231654bbf2dab3d86c1619ce799e77b03d96f9b50770297c8f4dff8836fc8ca2") |
|
|
|
|
elseif os.arch() == "i386" then |
|
|
|
|
set_urls("https://go.dev/dl/go$(version).linux-386.tar.gz") |
|
|
|
|
add_versions("1.17.6", "06c50fb0d44bb03dd4ea8795f9448379c5825d2765307b51f66905084c3ba541") |
|
|
|
|
elseif os.arch() == "arm64" then |
|
|
|
|
set_urls("https://go.dev/dl/go$(version).linux-arm64.tar.gz") |
|
|
|
|
add_versions("1.17.6", "82c1a033cce9bc1b47073fd6285233133040f0378439f3c4659fe77cc534622a") |
|
|
|
|
end |
|
|
|
|
elseif is_host("macosx") then |
|
|
|
|
if is_arch("x86_64") then |
|
|
|
|
set_urls("https://dl.google.com/go/go$(version).darwin-amd64.tar.gz") |
|
|
|
|
add_versions("1.11", "9749e6cb9c6d05cf10445a7c9899b58e72325c54fee9783ed1ac679be8e1e073") |
|
|
|
|
if os.arch() == "x86_64" then |
|
|
|
|
set_urls("https://go.dev/dl/go$(version).darwin-amd64.tar.gz") |
|
|
|
|
add_versions("1.17.6", "874bc6f95e07697380069a394a21e05576a18d60f4ba178646e1ebed8f8b1f89") |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|