parent
024801f59a
commit
e75398628b
|
@ -1,10 +1,12 @@
|
||||||
# Template file for 'grpc'
|
# Template file for 'grpc'
|
||||||
pkgname=grpc
|
pkgname=grpc
|
||||||
version=1.26.0
|
version=1.27.3
|
||||||
revision=2
|
revision=1
|
||||||
build_style=gnu-makefile
|
_abseilver=37dd2562ec830d547a1524bb306be313ac3f2556
|
||||||
make_build_args="prefix=\$(DESTDIR)/usr AROPTS=rc LD=\$(CC)"
|
build_style=cmake
|
||||||
make_install_args="prefix=\$(DESTDIR)/usr"
|
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"
|
hostmakedepends="which protobuf"
|
||||||
makedepends="zlib-devel c-ares-devel libressl-devel libprotoc-devel
|
makedepends="zlib-devel c-ares-devel libressl-devel libprotoc-devel
|
||||||
protobuf-devel gperftools-devel"
|
protobuf-devel gperftools-devel"
|
||||||
|
@ -12,12 +14,18 @@ short_desc="High performance, open source, general RPC framework"
|
||||||
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
||||||
license="Apache-2.0"
|
license="Apache-2.0"
|
||||||
homepage="https://github.com/grpc/grpc"
|
homepage="https://github.com/grpc/grpc"
|
||||||
distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}/${pkgname}-${version}.tar.gz"
|
distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}/${pkgname}-${version}.tar.gz
|
||||||
checksum=2fcb7f1ab160d6fd3aaade64520be3e5446fc4c6fa7ba6581afdc4e26094bd81
|
https://github.com/abseil/abseil-cpp/archive/${_abseilver}/abseil-cpp-${_abseilver}.tar.gz"
|
||||||
nocross=yes
|
checksum="c2ab8a42a0d673c1acb596d276055adcc074c1116e427f118415da3e79e52969
|
||||||
|
19391fb4882601a65cb648d638c11aa301ce5f525ef02da1a9eafd22f72d7c59"
|
||||||
|
|
||||||
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
hostmakedepends+=" grpc" # need host grpc_cpp_plugin
|
||||||
|
fi
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
sed -r 's/-Werror//g;/ldconfig/d;s/ strip-(static|shared)_c(xx)? / /' -i Makefile
|
rm -rf third_party/abseil-cpp
|
||||||
|
mv ../abseil-cpp-${_abseilver} third_party/abseil-cpp
|
||||||
}
|
}
|
||||||
|
|
||||||
grpc-devel_package() {
|
grpc-devel_package() {
|
||||||
|
@ -25,8 +33,9 @@ grpc-devel_package() {
|
||||||
depends="${sourcepkg}>=${version}_${revision}"
|
depends="${sourcepkg}>=${version}_${revision}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
vmove usr/lib/*.so
|
|
||||||
vmove usr/lib/*.a
|
vmove usr/lib/*.a
|
||||||
|
vmove usr/lib/*.so
|
||||||
|
vmove usr/lib/cmake
|
||||||
vmove usr/lib/pkgconfig
|
vmove usr/lib/pkgconfig
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue