40 lines
1.3 KiB
Bash
40 lines
1.3 KiB
Bash
# Template file for 'grpc'
|
|
pkgname=grpc
|
|
version=1.24.3
|
|
revision=1
|
|
_upbver=931bbecbd3230ae7f22efa5d203639facc47f719
|
|
build_style=gnu-makefile
|
|
make_build_args="prefix=\$(DESTDIR)/usr AROPTS=rc LD=\$(CC)"
|
|
make_install_args="prefix=\$(DESTDIR)/usr"
|
|
hostmakedepends="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 <leah@vuxu.org>"
|
|
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/protocolbuffers/upb/archive/${_upbver}/upb-${_upbver}.tar.gz"
|
|
checksum="c84b3fa140fcd6cce79b3f9de6357c5733a0071e04ca4e65ba5f8d306f10f033
|
|
95150db57b51b65f3422c38953956e0f786945d842d76f8ab685fbcd93ab5caa"
|
|
nocross=yes
|
|
|
|
post_extract() {
|
|
sed -r 's/-Werror//g;/ldconfig/d;s/ strip-(static|shared)_c(xx)? / /' -i Makefile
|
|
rm -rf third_party/upb
|
|
mv ../upb-${_upbver} third_party/upb
|
|
}
|
|
post_install() {
|
|
vlicense NOTICE.txt
|
|
}
|
|
|
|
grpc-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/*.so
|
|
vmove usr/lib/*.a
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|