Files
horizon-packages/srcpkgs/Bear/template
T

28 lines
957 B
Bash

# Template file for 'Bear'
pkgname=Bear
version=3.1.6
revision=6
build_style=cmake
hostmakedepends="pkg-config protobuf protobuf-devel grpc"
makedepends="json-c++ spdlog grpc-devel protobuf-devel gtest-devel"
checkdepends="python3" # Should need python3-lit
short_desc="Tool that generates a compilation database for clang tooling"
maintainer="John <me@johnnynator.dev>"
license="GPL-3.0-or-later"
homepage="https://github.com/rizsotto/Bear"
distfiles="https://github.com/rizsotto/Bear/archive/${version}.tar.gz"
checksum=99cd891eec6e89b734d7cafe0e623dd8c2f27d8cbf3ee9bc4807e69e5c8fb55c
if [ -z "$XBPS_CHECK_PKGS" ] || [ "$CROSS_BUILD" ]; 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
}