-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Lizan Zhou <[email protected]>
- Loading branch information
Showing
2 changed files
with
15 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Maintainer: David Ostrovsky <[email protected]> | ||
|
||
pkgname=bazel | ||
pkgver=0.15.2 | ||
pkgver=0.19.0 | ||
pkgrel=0 | ||
pkgdesc='Correct, reproducible, and fast builds for everyone' | ||
arch="all" | ||
|
@@ -16,20 +16,22 @@ options="!distcc !strip" | |
source="https://github.com/bazelbuild/bazel/releases/download/${pkgver}/bazel-${pkgver}-dist.zip | ||
https://github.com/bazelbuild/bazel/releases/download/${pkgver}/bazel-${pkgver}-dist.zip.sig" | ||
|
||
sha512sums="c1257fc7eeadc8e76fbd52be393d07161e6eadf7111e09ee9a7f9bf6d3b7e848e9b193a3b66a13e99c09a42e577404cb3a5f1fc3819f35436a36149dbb1ea365 bazel-0.15.2-dist.zip | ||
d81fd679b9efbd334a32ed4d32561deed7aace24f12462a5860d3fc7b4fc2dfa3614a23f4772e54d06031b364790e91df936d34b1f881ed4067234a8d84cc0b9 bazel-0.15.2-dist.zip.sig" | ||
sha512sums="ea67fb4d13487d24a0442084f42ff3c082a107c56a06d882f579064f17c545d6e9b5f0c4d724238c22e9b3bad12c68c60c58b59f82d9e957fe3af222d44bc969 bazel-0.19.0-dist.zip | ||
c427bd8ffe52bc55da832688493874288d8e84c87742ec5917f987591ce923b2f84a964086a0d9aaeaaf6e1ba44ec64084c880f8d366c21386b479bbc0126fea bazel-0.19.0-dist.zip.sig" | ||
|
||
build() { | ||
export JAVA_HOME=/usr/lib/jvm/default-jvm | ||
./compile.sh | ||
./output/bazel build -s --verbose_failures scripts:bazel-complete.bash | ||
cd output | ||
./bazel shutdown | ||
scripts/generate_bash_completion.sh --bazel=output/bazel --output=output/bazel-complete.bash --prepend=scripts/bazel-complete-template.bash | ||
output/bazel shutdown | ||
echo startup --server_javabase=$JAVA_HOME >> scripts/packages/bazel.bazelrc | ||
} | ||
|
||
package() { | ||
install -Dm755 ${srcdir}/scripts/packages/bazel.sh ${pkgdir}/usr/bin/bazel | ||
install -Dm755 ${srcdir}/scripts/packages/bazel.bazelrc ${pkgdir}/etc/bazel.bazelrc | ||
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}/output/bazel-complete.bash ${pkgdir}/usr/share/bash-completion/completions/bazel | ||
install -Dm644 ${srcdir}/scripts/zsh_completion/_bazel ${pkgdir}/usr/share/zsh/site-functions/_bazel | ||
} | ||
# vim:set ts=2 sw=2 et: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
# bazel-alpine-package | ||
|
||
This is the Bazel 0.15.2 as a Alpine Linux package. | ||
This is the Bazel 0.19.0 as a Alpine Linux package. | ||
|
||
## Installing | ||
|
||
The current installation method for these packages is to pull them in using `wget` or `curl` and install the local file with `apk`: | ||
|
||
apk --no-cache add ca-certificates wget | ||
wget -q -O /etc/apk/keys/[email protected] https://raw.githubusercontent.com/davido/bazel-alpine-package/master/[email protected] | ||
wget https://github.com/davido/bazel-alpine-package/releases/download/0.15.2/bazel-0.15.2-r0.apk | ||
apk add bazel-0.15.2-r0.apk | ||
wget https://github.com/davido/bazel-alpine-package/releases/download/0.19.0/bazel-0.15.2-r0.apk | ||
apk add bazel-0.19.0-r0.apk | ||
|
||
## Usage inside a Dockerfile | ||
|
||
ADD https://raw.githubusercontent.com/davido/bazel-alpine-package/master/[email protected] \ | ||
/etc/apk/keys/[email protected] | ||
ADD https://github.com/davido/bazel-alpine-package/releases/download/0.15.2/bazel-0.15.2-r0.apk \ | ||
/tmp/bazel-0.15.2-r0.apk | ||
RUN apk add /tmp/bazel-0.15.2-r0.apk | ||
ADD https://github.com/davido/bazel-alpine-package/releases/download/0.19.0/bazel-0.15.2-r0.apk \ | ||
/tmp/bazel-0.19.0-r0.apk | ||
RUN apk add /tmp/bazel-0.19.0-r0.apk |