void-packages/srcpkgs/grpc/template
2020-02-28 19:43:51 -08:00

32 lines
1,010 B
Bash

# Template file for 'grpc'
pkgname=grpc
version=1.26.0
revision=2
build_style=gnu-makefile
make_build_args="prefix=\$(DESTDIR)/usr AROPTS=rc LD=\$(CC)"
make_install_args="prefix=\$(DESTDIR)/usr"
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 <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"
checksum=2fcb7f1ab160d6fd3aaade64520be3e5446fc4c6fa7ba6581afdc4e26094bd81
nocross=yes
post_extract() {
sed -r 's/-Werror//g;/ldconfig/d;s/ strip-(static|shared)_c(xx)? / /' -i Makefile
}
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
}
}