pkgname=go-bootstrap
pkgver=1.22.12
homepage="https://golang.org"
pkgdesc="Binary bootstrap package for dev-lang/go"
license=(BSD)
sources=("${pkgname}-${pkgver}-linux-amd64.tbz")
urls=("https://dev.gentoo.org/~williamh/dist/${sources[0]}")
md5sums=("14351f5bc7ca9680dec82ba7b02ee09b")
options=(!strip)

src_prepare() {
  tar -xaf ${distdir}/${sources[0]}
}

src_install() {
  mkdir -pv "${pkgdir}/usr/lib"
  mv go-*-bootstrap "${pkgdir}/usr/lib/go-bootstrap"
  rm -fr $(find "${pkgdir}"/usr/lib/go-bootstrap -iname testdata -type d -print)
}


# vim:ft=sh syn=sh et sw=2:
