# Contributor: wener # Maintainer: wener pkgname=grpc-java pkgver=1.25.0 pkgrel=0 pkgdesc="The Java gRPC implementation. HTTP/2 based RPC" url="https://github.com/grpc/grpc-java" arch="all !aarch64 !armhf !armv7 !s390x" # fails to build on aarch64 and armhf for some strange reason license="Apache2" depends="openjdk8-jre" makedepends="openjdk8 protobuf-dev nss" source="$pkgname-$pkgver.tar.gz::https://github.com/grpc/grpc-java/archive/v$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" options="!check" build() { export GRADLE_USER_HOME="$srcdir"/.gradle cd "$builddir"/compiler ../gradlew --no-daemon --parallel --info java_pluginExecutable } package() { install -D -m 755 "$builddir"/compiler/build/exe/java_plugin/protoc-gen-grpc-java "$pkgdir"/usr/bin/protoc-gen-grpc-java } sha512sums="5348bb6c83a3b46c06ce67c21e2cf04533146bbff0b77a4c2f0f54dcae27dfe6c735907ff1594c1ac2662521a93443dc6ba4dcd289a3fb3b5cd780ebdfbadc30 grpc-java-1.25.0.tar.gz"