diff options
author | Kenneth Endfinger | 2020-01-15 04:13:58 -0500 |
---|---|---|
committer | Kenneth Endfinger | 2020-01-15 04:13:58 -0500 |
commit | 50c8e3655840708c7ef2fcdf5621cd5d39a949f6 (patch) | |
tree | c3d8d3ebcef7ab51d8852199869065d10d4e6a7b /PKGBUILD | |
download | aur-50c8e3655840708c7ef2fcdf5621cd5d39a949f6.tar.gz |
Initial Commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0195d11b6fc3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Kenneth Endfinger <kaendfinger@gmail.com> +pkgname=bazel-bootstrap +pkgver=2.0.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=('db609e9d0ee0cdbfb999de850db17907af02dc26e605f4617dfeb2fbac5c30c4c0a9f48c6ba3673ffe8babb5b9e157cc51c32832015b85ed279b6b160506cdae' + '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 +} |