Commit 222eda29 authored by Simon F's avatar Simon F Committed by Leo
Browse files

testing/bazel2: use java-provides abstractions

parent d8232ba1
......@@ -2,12 +2,12 @@
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=bazel2
pkgver=2.2.0
pkgrel=0
pkgrel=1
pkgdesc="A fast, scalable, multi-language and extensible build system"
url="https://bazel.build/"
arch="x86_64"
license="Apache-2.0"
depends="bash libarchive openjdk8 zip unzip"
depends="bash libarchive java-jdk zip unzip"
makedepends="python3 linux-headers protobuf coreutils"
options="!strip"
replaces="bazel"
......@@ -23,9 +23,8 @@ source="https://github.com/bazelbuild/bazel/releases/download/$pkgver/bazel-$pkg
build() {
# based on
# https://github.com/vbatts/copr-build-bazel/blob/master/bazel.spec
export JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk
export EXTRA_BAZEL_ARGS="--host_javabase=@local_jdk//:jdk"
export JAVA_HOME="/usr/lib/jvm/default-jvm/jre"
# horrible of horribles, just to have python in the PATH
# https://github.com/bazelbuild/bazel/issues/8665
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment