From 2f8d92629cbf6bda0d393541cd5b4c59f46f0bd6 Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Thu, 2 Feb 2023 19:20:37 +0100 Subject: [PATCH] New package: go1.17-bootstrap-1.17.13 --- srcpkgs/go1.17-bootstrap/INSTALL.msg | 4 +++ srcpkgs/go1.17-bootstrap/template | 51 ++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 srcpkgs/go1.17-bootstrap/INSTALL.msg create mode 100644 srcpkgs/go1.17-bootstrap/template diff --git a/srcpkgs/go1.17-bootstrap/INSTALL.msg b/srcpkgs/go1.17-bootstrap/INSTALL.msg new file mode 100644 index 00000000000..142aeabbc1b --- /dev/null +++ b/srcpkgs/go1.17-bootstrap/INSTALL.msg @@ -0,0 +1,4 @@ +This is a copy of the official Go language toolchain binaries as provided by +the project on its download page. Please do keep in mind that it is almost +definitely not what you want to use and exists purely for the purpose of +bootstrapping the official compiler package (called simply 'go'). diff --git a/srcpkgs/go1.17-bootstrap/template b/srcpkgs/go1.17-bootstrap/template new file mode 100644 index 00000000000..555eb97f52e --- /dev/null +++ b/srcpkgs/go1.17-bootstrap/template @@ -0,0 +1,51 @@ +# 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 " +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 +}