diff options
author | wener <wenermail@gmail.com> | 2019-06-28 04:05:37 +0800 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-07-04 06:59:51 +0000 |
commit | 49b68d8cfcf731449422b07c5b33c264e04abb61 (patch) | |
tree | 0b2609f5d6a8b3349aa51a8d049666763335efb5 /community/grpc/APKBUILD | |
parent | 887a421ba2159f1effc92da77105e7d29bb4b675 (diff) | |
download | aports-49b68d8cfcf731449422b07c5b33c264e04abb61.tar.bz2 aports-49b68d8cfcf731449422b07c5b33c264e04abb61.tar.xz |
community/grpc: move from testing
Diffstat (limited to 'community/grpc/APKBUILD')
-rw-r--r-- | community/grpc/APKBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/community/grpc/APKBUILD b/community/grpc/APKBUILD new file mode 100644 index 0000000000..43f6de887a --- /dev/null +++ b/community/grpc/APKBUILD @@ -0,0 +1,49 @@ +# Contributor: wener <wenermail@gmail.com> +# Maintainer: wener <wenermail@gmail.com> +pkgname=grpc +pkgver=1.21.3 +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 + disable-Werror.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 +} + +package() { + cd "$builddir" + make install prefix="$pkgdir/usr" + rm -f "$pkgdir/usr/share/grpc/roots.pem" +} + +cli() { + cd "$builddir" + make install-grpc-cli prefix="$subpkgdir/usr" +} + +sha512sums="a568627073a39ef8799672f8b365ac9a742468be969b528c518782f5783b22a9c519f5cf7e31d3c225e1d9a866f036beb850c7ddbe07ada6e6b7056684c64b2d grpc-1.21.3.tar.gz +dd55ab745c43c5c953d8cebd2fb44b4bb2cb87c95194965bffd0bd8219332d5f073c22947c8a8b1e2652805dff1cff4b93fe69645d4c0d635f98ae2cf54af14a googletest-ec44c6c1675c25b9827aacd08c02433cccde7780.tar.gz +7fa146ce86ddd4f160bb1ca9ff01cb7aca6b2b8c9aa50e4fa6b84504b9117b104be0d1e31ccb452d846549dfe1e9012ceccfcdc1f2357ed567621d71fb8b08c5 01-chttp2-maybe-uninitialized.patch +d50885978466137e595ccb8e45fc7e283ff18b61775c4e0d92c0f56310c719802e591816955d800e71aab1da36b52f938f32d46bed3c230dd2b1b08dca7f2a91 disable-Werror.patch" |