mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-28 08:22:56 +02:00
grpc: correct absl pkgconfig sed-hack
This commit is contained in:
parent
f6934c1c55
commit
d9165e6758
1 changed files with 6 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'grpc'
|
# Template file for 'grpc'
|
||||||
pkgname=grpc
|
pkgname=grpc
|
||||||
version=1.39.1
|
version=1.39.1
|
||||||
revision=2
|
revision=3
|
||||||
_abseilver=997aaf3a28308eba1b9156aa35ab7bca9688e9f6
|
_abseilver=997aaf3a28308eba1b9156aa35ab7bca9688e9f6
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
configure_args="-DBUILD_SHARED_LIBS=ON
|
configure_args="-DBUILD_SHARED_LIBS=ON
|
||||||
|
@ -45,17 +45,17 @@ post_patch() {
|
||||||
post_build() {
|
post_build() {
|
||||||
# Clean up unneeded absl linker arguments from pkgconfig files
|
# Clean up unneeded absl linker arguments from pkgconfig files
|
||||||
sed -e 's/-labsl_[^[:space:]]\+[[:space:]]*//g' \
|
sed -e 's/-labsl_[^[:space:]]\+[[:space:]]*//g' \
|
||||||
-i build/libs/opt/pkgconfig/*.pc
|
-i build/lib/pkgconfig/*.pc
|
||||||
|
|
||||||
# Add custom absl include root to grpcpp cflags
|
|
||||||
sed -e 's,^Cflags:.*,& -I${includedir}/grpc_absl,' \
|
|
||||||
-i build/libs/opt/pkgconfig/grpc++*.pc
|
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
# Remove unnecessary absl static libs and cmake modules
|
# Remove unnecessary absl static libs and cmake modules
|
||||||
rm "${DESTDIR}"/usr/lib/libabsl*.a
|
rm "${DESTDIR}"/usr/lib/libabsl*.a
|
||||||
rm -rf "${DESTDIR}/usr/lib/cmake/absl"
|
rm -rf "${DESTDIR}/usr/lib/cmake/absl"
|
||||||
|
|
||||||
|
# Add custom absl include root to grpcpp cflags
|
||||||
|
vsed -e 's,^Cflags:.*,& -I${includedir}/grpc_absl,' \
|
||||||
|
-i ${DESTDIR}/usr/lib/pkgconfig/grpc++*.pc
|
||||||
}
|
}
|
||||||
|
|
||||||
grpc-devel_package() {
|
grpc-devel_package() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue