blob: bb55bbd2e54d63a93913fbd12ed341f27a39cd1b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# Contributor: wener <wenermail@gmail.com>
# Maintainer: wener <wenermail@gmail.com>
pkgname=grpc-java
pkgver=1.19.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="43069a40ae1a76b8164b2e4d8fc3b6488d0b7e0742120219043172322e975d1216865ad3649c5ec3a0f339b8d3f9a46c5b2321114b5b5a4957102f2d7e4a8920 grpc-java-1.19.0.tar.gz"
|