From 9459535a134832f3cc5da7ff2e33cb89ea6e1089 Mon Sep 17 00:00:00 2001 From: Jeff Huang Date: Fri, 6 Oct 2017 02:53:00 +0100 Subject: [PATCH] bazel: update to 0.6.1 --- bazel/PKGBUILD | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/bazel/PKGBUILD b/bazel/PKGBUILD index 3f9c4ffc5..42c335d74 100644 --- a/bazel/PKGBUILD +++ b/bazel/PKGBUILD @@ -1,23 +1,30 @@ pkgname=bazel -pkgver=0.4.4 +pkgver=0.6.1 pkgrel=1 pkgdesc="Correct, reproducible, fast builds for everyone." arch=("x86_64") -url="https://bazel.build" -license=('APLv2') -depends=('openjdk') -makedepends=('zip' 'unzip') +url="https://bazel.build/" +license=('Apache') +depends=('java-environment>=8' 'libarchive' 'zip' 'unzip') +makedepends=('git' 'protobuf' 'python3') source=("https://github.com/bazelbuild/${pkgname}/releases/download/${pkgver}/${pkgname}-${pkgver}-dist.zip") -sha256sums=("d52a21dda271ae645711ce99c70cf44c5d3a809138e656bbff00998827548ebb") -options=('!strip') +sha256sums=('dada1f60a512789747011184b2767d2b44136ef3b036d86947f1896d200d2ba7') +options=('!distcc' '!strip') build() { ./compile.sh - output/bazel build scripts/bazel-complete.bash + ./output/bazel build scripts:bazel-complete.bash + cd output + ./bazel shutdown } package() { - install -D -m755 output/bazel "${pkgdir}"/usr/bin/bazel - install -D -m755 bazel-bin/scripts/bazel-complete.bash "${pkgdir}/usr/share/bash-completion/completions/bazel" + install -Dm755 ${srcdir}/scripts/packages/bazel.sh ${pkgdir}/usr/bin/bazel + install -Dm755 ${srcdir}/output/bazel ${pkgdir}/usr/bin/bazel-real + install -Dm644 ${srcdir}/bazel-bin/scripts/bazel-complete.bash ${pkgdir}/usr/share/bash-completion/completions/bazel + install -Dm644 ${srcdir}/scripts/zsh_completion/_bazel ${pkgdir}/usr/share/zsh/site-functions/_bazel + mkdir -p ${pkgdir}/opt/bazel/ + for d in examples third_party tools; do + cp -r ${srcdir}/${d} ${pkgdir}/opt/bazel/ + done } -