Natanael Copa 2933910e0f testing/grpc-java: disable on s390x due to build failure
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':grpc-compiler'.
> Exception thrown while executing model rule: NativeComponentModelPlugin.Rules#createBinaries(TargetedNativeComponentInternal, PlatformResolvers, BuildTypeContainer, FlavorContainer, ServiceRegistry)
   > Invalid NativePlatform: linux_s390x
2018-08-07 12:21:44 +00:00

27 lines
991 B
Plaintext

# Contributor: wener <wenermail@gmail.com>
# Maintainer: wener <wenermail@gmail.com>
pkgname=grpc-java
pkgver=1.11.0
pkgrel=0
pkgdesc="The Java gRPC implementation. HTTP/2 based RPC"
url="https://github.com/grpc/grpc-java"
arch="all !aarch64 !armhf !s390x" # fails to build on aarch64 and armhf for some strange reason
license="Apache2"
depends="openjdk8-jre"
makedepends="openjdk8 protobuf-dev"
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="50fd8b13c65a1db01dfab37e7825a78f76c40a05b47d65833f5c4132f18b654c581d84984d70d8a62e928b23d3191e4cfdc803687a5c6a6a055c031af6089afd grpc-java-1.11.0.tar.gz"