# Template file for 'grpc' pkgname=grpc version=1.27.3 revision=1 _abseilver=37dd2562ec830d547a1524bb306be313ac3f2556 build_style=cmake configure_args="-DBUILD_SHARED_LIBS=ON -DgRPC_CARES_PROVIDER=package -DgRPC_PROTOBUF_PROVIDER=package -DgRPC_SSL_PROVIDER=package -DgRPC_ZLIB_PROVIDER=package" hostmakedepends="which protobuf" makedepends="zlib-devel c-ares-devel libressl-devel libprotoc-devel protobuf-devel gperftools-devel" short_desc="High performance, open source, general RPC framework" maintainer="Leah Neukirchen " license="Apache-2.0" homepage="https://github.com/grpc/grpc" distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}/${pkgname}-${version}.tar.gz https://github.com/abseil/abseil-cpp/archive/${_abseilver}/abseil-cpp-${_abseilver}.tar.gz" checksum="c2ab8a42a0d673c1acb596d276055adcc074c1116e427f118415da3e79e52969 19391fb4882601a65cb648d638c11aa301ce5f525ef02da1a9eafd22f72d7c59" if [ "$CROSS_BUILD" ]; then hostmakedepends+=" grpc" # need host grpc_cpp_plugin fi if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then makedepends+=" libatomic-devel" configure_args+=" -DCMAKE_CXX_STANDARD_LIBRARIES=-latomic" fi post_extract() { rm -rf third_party/abseil-cpp mv ../abseil-cpp-${_abseilver} third_party/abseil-cpp } grpc-devel_package() { short_desc+=" - development files" depends="${sourcepkg}>=${version}_${revision}" pkg_install() { vmove usr/include vmove usr/lib/*.a vmove usr/lib/*.so vmove usr/lib/cmake vmove usr/lib/pkgconfig } }