mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
protobuf: install cmake files
This commit is contained in:
parent
1e2cd4ec3a
commit
7b39b6bc8e
1 changed files with 6 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'protobuf'
|
# Template file for 'protobuf'
|
||||||
pkgname=protobuf
|
pkgname=protobuf
|
||||||
version=25.2
|
version=25.2
|
||||||
revision=1
|
revision=2
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
configure_args="-Dprotobuf_BUILD_SHARED_LIBS=ON -Dprotobuf_USE_EXTERNAL_GTEST=ON
|
configure_args="-Dprotobuf_BUILD_SHARED_LIBS=ON -Dprotobuf_USE_EXTERNAL_GTEST=ON
|
||||||
-Dprotobuf_BUILD_LIBPROTOC=ON -Dprotobuf_ABSL_PROVIDER=package
|
-Dprotobuf_BUILD_LIBPROTOC=ON -Dprotobuf_ABSL_PROVIDER=package
|
||||||
|
@ -29,7 +29,6 @@ if [ "$CROSS_BUILD" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
rm -rf "${DESTDIR}/usr/lib/cmake"
|
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -87,6 +86,11 @@ protobuf-devel_package() {
|
||||||
vmove usr/lib/libprotobuf.so
|
vmove usr/lib/libprotobuf.so
|
||||||
vmove usr/lib/libprotobuf-lite.so
|
vmove usr/lib/libprotobuf-lite.so
|
||||||
vmove usr/lib/pkgconfig
|
vmove usr/lib/pkgconfig
|
||||||
|
vmove usr/lib/cmake
|
||||||
|
# when cross-building something that uses this cmake file,
|
||||||
|
# it barfs because it can't execute the target's protobuf binary
|
||||||
|
vsed -i -e 's,${_IMPORT_PREFIX}/bin,/usr/bin,g' \
|
||||||
|
"$PKGDESTDIR"/usr/lib/cmake/protobuf/protobuf-targets-none.cmake
|
||||||
vmove "usr/lib/*.a"
|
vmove "usr/lib/*.a"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue