# Contributor: wener # Maintainer: wener pkgname=grpc-java pkgver=1.28.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 !mips !mips64" # fails to build on aarch64 and armhf for some strange reason license="Apache-2.0" depends="openjdk8-jre" makedepends="openjdk8 protobuf-dev nss" source="$pkgname-$pkgver.tar.gz::https://github.com/grpc/grpc-java/archive/v$pkgver.tar.gz" options="!check" build() { export GRADLE_USER_HOME="$srcdir"/.gradle cd compiler ../gradlew --no-daemon --parallel --info java_pluginExecutable -PskipAndroid=true } package() { install -D -m 755 compiler/build/exe/java_plugin/protoc-gen-grpc-java "$pkgdir"/usr/bin/protoc-gen-grpc-java } sha512sums="3aef9d6758ead95a6cbc76916eda6cc069bfa7b84e1541d08d703398e23887347abb9ab3a6705b4287abe4a0cd5ac3cea1eadc3f3c0cffadee2d8284a67e0a53 grpc-java-1.28.0.tar.gz"