diff --git a/srcpkgs/Bear/template b/srcpkgs/Bear/template index 7bf5b93be17..fdc02b19728 100644 --- a/srcpkgs/Bear/template +++ b/srcpkgs/Bear/template @@ -1,6 +1,6 @@ # Template file for 'Bear' pkgname=Bear -version=3.1.5 +version=3.1.6 revision=1 build_style=cmake hostmakedepends="pkg-config protobuf protobuf-devel grpc" @@ -11,8 +11,17 @@ maintainer="John " license="GPL-3.0-or-later" homepage="https://github.com/rizsotto/Bear" distfiles="https://github.com/rizsotto/Bear/archive/${version}.tar.gz" -checksum=4ac7b041222dcfc7231c6570d5bd76c39eaeda7a075ee2385b84256e7d659733 +checksum=99cd891eec6e89b734d7cafe0e623dd8c2f27d8cbf3ee9bc4807e69e5c8fb55c if [ -z "$XBPS_CHECK_PKGS" ]; then configure_args="-DENABLE_FUNC_TESTS=OFF -DENABLE_UNIT_TESTS=OFF" fi + +post_patch() { + # Change STAGED_INSTALL_PREFIX to a path in ${wrksrc} + vsed -i 's|set(STAGED_INSTALL_PREFIX .*|set(STAGED_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/staged")|' CMakeLists.txt +} + +post_install() { + rm -rf ${DESTDIR}/${wrksrc}/staged +}