# Maintainer: Kenneth Endfinger pkgname=bazel-bootstrap pkgver=2.1.0 pkgrel=1 pkgdesc="(Bootstrap Build) Correct, reproducible, and fast builds for everyone" arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64') url="http://bazel.io/" license=('Apache') depends=('java-environment=11' 'libarchive' 'zip' 'unzip') makedepends=('git' 'protobuf' 'python') options=('!distcc' '!strip' '!ccache') source=("bazel-bootstrap.zip::https://github.com/bazelbuild/bazel/releases/download/${pkgver}/bazel-${pkgver}-dist.zip" "bazel-bootstrap.zip.sig::https://github.com/bazelbuild/bazel/releases/download/${pkgver}/bazel-${pkgver}-dist.zip.sig" ) sha512sums=('5a98e7bcc7a078c37a5ee70054c45b2c30ef85c741a081a53e172678a1425b107a529636f32887ad41cd32609b69340dba82478dc20ecc856b131f23ea977200' 'SKIP') validpgpkeys=('71A1D0EFCFEB6281FD0437C93D5919B448457EE0') build() { env EXTRA_BAZEL_ARGS="--host_javabase=@local_jdk//:jdk" ./compile.sh cd output ./bazel shutdown } package() { mkdir -p "${pkgdir}/opt/bazel-bootstrap/bin" install -Dm755 "${srcdir}/scripts/packages/bazel.sh" "${pkgdir}/opt/bazel-bootstrap/bin/bazel" install -Dm755 "${srcdir}/output/bazel" "${pkgdir}/opt/bazel-bootstrap/bin/bazel-real" for d in examples third_party tools; do cp -r "${srcdir}/${d}" "${pkgdir}/opt/bazel-bootstrap/" done }