mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-01 02:12:55 +02:00
bazel: wrap for java-home
This commit is contained in:
parent
90f82712b1
commit
0234fda522
1 changed files with 8 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'bazel'
|
||||
pkgname=bazel
|
||||
version=8.2.1
|
||||
revision=1
|
||||
revision=2
|
||||
hostmakedepends="protobuf python3 unzip openjdk21 which perl grpc zip tar"
|
||||
makedepends="protobuf-devel libprotoc-devel grpc-devel libarchive-devel
|
||||
zlib-devel"
|
||||
|
@ -65,11 +65,17 @@ do_build() {
|
|||
--output=output/bazel.fish
|
||||
|
||||
cp scripts/zsh_completion/_bazel output/
|
||||
cat >output/bazel.wrapper <<-EOF
|
||||
#!/bin/sh
|
||||
export JAVA_HOME="$JAVA_HOME"
|
||||
exec /usr/libexec/bazel/bazel "\$@"
|
||||
EOF
|
||||
chmod -R u+rwX /tmp
|
||||
}
|
||||
|
||||
do_install() {
|
||||
vbin output/bazel
|
||||
vinstall output/bazel 755 usr/libexec/bazel/
|
||||
vbin output/bazel.wrapper bazel
|
||||
vcompletion output/bazel-complete.bash bash
|
||||
vcompletion output/bazel.fish fish
|
||||
vcompletion output/_bazel zsh
|
||||
|
|
Loading…
Add table
Reference in a new issue