aboutsummaryrefslogblamecommitdiffstats
path: root/community/grpc/APKBUILD
blob: e723cacbcdb042e1957450ede24e805544b8dc91 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                          
             
        

                                                                     

                    
                  

                                                                         
                                       

                                                        

                                                                                                                        
                                                                                                                        
                                                   
                                 
                 






                                                                                         


                                                                                         


         
            
                     


           
                                                          



                                                


                                                           

 
                                                                                                                                                                

                                                                                                                                                                                            
                                                                                                                                                                     
                                                                                                                                                    
# Contributor: wener <wenermail@gmail.com>
# Maintainer: wener <wenermail@gmail.com>
pkgname=grpc
pkgver=1.27.3
pkgrel=0
pkgdesc="The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#) "
url="https://grpc.io/"
arch="all !ppc64le"
license="Apache-2.0"
depends="protobuf"
makedepends="autoconf automake libtool libstdc++ protobuf-dev c-ares-dev
	openssl-dev gflags-dev gtest-dev zlib-dev yaml-dev linux-headers"
subpackages="$pkgname-dev $pkgname-cli"
_googletest_rev=c9ccac7cb7345901884aabf5d1a786cfa6e2f397
_abseil_cpp_rev=37dd2562ec830d547a1524bb306be313ac3f2556
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
		abseil-cpp-$_abseil_cpp_rev.tar.gz::https://github.com/abseil/abseil-cpp/archive/$_abseil_cpp_rev.tar.gz
		01-chttp2-maybe-uninitialized.patch
		fix-install.patch
		"
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

	rm -rf $pkgname-$pkgver/third_party/abseil-cpp
	ln -sfn $PWD/abseil-cpp-$_abseil_cpp_rev/ $pkgname-$pkgver/third_party/abseil-cpp
}

build() {
	make
	make grpc_cli
}

package() {
	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="0338eedcce40cd7359cc1b216eb3eeaaeb1f2b065d1bb03e72322978a7e40ef8ecc1ad39808bec8c0fd5bcaa91e91bbd6037e5a6611a979c9ab413eb159bb38b  grpc-1.27.3.tar.gz
7dda1e090d5054896899a250433d78ba9fcc004a60c886c93098c726ff12f70bb8d222112f8845e98c1ceacdb060b96699bb90d8f4207496546996195ae90343  googletest-c9ccac7cb7345901884aabf5d1a786cfa6e2f397.tar.gz
31100784066b8ce44f296c25a32c31654356f483de1518d9bd623e7c3d34825eabd94bc97ded0dac72fe032d21d8801d4b671a82b23ee2ef97d142e8e0c78489  abseil-cpp-37dd2562ec830d547a1524bb306be313ac3f2556.tar.gz
7fa146ce86ddd4f160bb1ca9ff01cb7aca6b2b8c9aa50e4fa6b84504b9117b104be0d1e31ccb452d846549dfe1e9012ceccfcdc1f2357ed567621d71fb8b08c5  01-chttp2-maybe-uninitialized.patch
f72be2359d89278cec96049833c7c94868f45f3670a6eb900921e0139514f160aac40408755b8fdc8c2e612678037027266d80025a12781253ad1293e24bdead  fix-install.patch"