void-packages/srcpkgs/go1.17-bootstrap/template

52 lines
1.2 KiB
Bash
Raw Normal View History

2023-02-02 19:20:37 +01:00
# Template file for 'go1.17-bootstrap'
pkgname=go1.17-bootstrap
version=1.17.13
revision=1
archs="x86_64* i686* armv[67]l* aarch64* ppc64le*"
short_desc="Go 1.17 (bootstrap compiler)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://golang.org"
nostrip=yes
noverifyrdeps=yes
nocross=yes
lib32disabled=yes
repository=bootstrap
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
depends+=" gcompat"
fi
case "$XBPS_TARGET_MACHINE" in
x86_64*)
_dist_arch="amd64"
checksum="4cdd2bc664724dc7db94ad51b503512c5ae7220951cac568120f64f8e94399fc"
;;
i686*)
_dist_arch="386"
checksum="5e02f35aecc6b89679f631e0edf12c49922dd31c8140cf8dd725c5797a9f2425"
;;
arm*)
_dist_arch="armv6l"
checksum="260431d7deeb8893c21e71fcbbb1fde3258616d8eba584c8d72060228ab42c86"
;;
aarch64*)
_dist_arch="arm64"
checksum="914daad3f011cc2014dea799bb7490442677e4ad6de0b2ac3ded6cee7e3f493d"
;;
ppc64le*)
_dist_arch="ppc64le"
checksum="bd0763fb130f8412672ffe1e4a8e65888ebe2419e5caa9a67ac21e8c298aa254"
;;
esac
distfiles="https://dl.google.com/go/go${version}.linux-${_dist_arch}.tar.gz"
do_install() {
vmkdir usr/lib/go${version}
vcopy bin usr/lib/go${version}
vcopy src usr/lib/go${version}
vcopy pkg usr/lib/go${version}
vlicense LICENSE
}