aboutsummaryrefslogtreecommitdiffstats
path: root/community/grpc/APKBUILD
blob: 5c7e71faccff612a0eea88839f80dd4e04eee7d4 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Contributor: wener <wenermail@gmail.com>
# Maintainer: wener <wenermail@gmail.com>
pkgname=grpc
pkgver=1.25.0
pkgrel=0
pkgdesc="The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#) "
url="https://grpc.io/"
giturl="https://github.com/grpc/grpc"
arch="all"
license="Apache2"
depends="protobuf"
makedepends="autoconf automake libtool libstdc++ protobuf-dev c-ares-dev openssl-dev gflags-dev gtest-dev zlib-dev yaml-dev"
subpackages="$pkgname-dev $pkgname-cli"
_googletest_rev=ec44c6c1675c25b9827aacd08c02433cccde7780
source="$pkgname-$pkgver.tar.gz::https://github.com/grpc/grpc/archive/v$pkgver.tar.gz
		googletest-$_googletest_rev.tar.gz::https://github.com/google/googletest/archive/$_googletest_rev.tar.gz
		01-chttp2-maybe-uninitialized.patch
		fix-install.patch
		"
builddir="$srcdir/$pkgname-$pkgver"
options="!check"

unpack() {
	default_unpack
	cd "$srcdir"
	rm -rf $pkgname-$pkgver/third_party/googletest
	ln -sfn $PWD/googletest-$_googletest_rev/ $pkgname-$pkgver/third_party/googletest
}

build() {
	cd "$builddir"
	make
	make grpc_cli
}

package() {
	cd "$builddir"
	make install install-grpc-cli prefix="$pkgdir/usr"
	rm -f "$pkgdir/usr/share/grpc/roots.pem"
}

cli() {
	pkgdesc="gRPC command line tool"
	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/grpc_cli "$subpkgdir"/usr/bin/
}

sha512sums="7d9e126eafdfefe9b5c2eacf9c082b972115f231a55cff53386305f2df68037e2593eedc3f27fe0eaeb7fbe78b28f6b87607cdeccf59929b9a9b33bf74ab5c92  grpc-1.25.0.tar.gz
dd55ab745c43c5c953d8cebd2fb44b4bb2cb87c95194965bffd0bd8219332d5f073c22947c8a8b1e2652805dff1cff4b93fe69645d4c0d635f98ae2cf54af14a  googletest-ec44c6c1675c25b9827aacd08c02433cccde7780.tar.gz
7fa146ce86ddd4f160bb1ca9ff01cb7aca6b2b8c9aa50e4fa6b84504b9117b104be0d1e31ccb452d846549dfe1e9012ceccfcdc1f2357ed567621d71fb8b08c5  01-chttp2-maybe-uninitialized.patch
f72be2359d89278cec96049833c7c94868f45f3670a6eb900921e0139514f160aac40408755b8fdc8c2e612678037027266d80025a12781253ad1293e24bdead  fix-install.patch"