blob: 481428d1492f1072e96ab6857df475278de7fdb9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer:
pkgname=bear
pkgver=3.1.1
pkgrel=0
pkgdesc="Tool which generates a compilation database for clang tooling"
url="https://github.com/rizsotto/Bear"
arch="all"
license="GPL-3.0-or-later"
makedepends="
c-ares-dev
cmake
fmt-dev
grpc-dev
gtest-dev
nlohmann-json
protobuf-dev
re2-dev
samurai
spdlog-dev
sqlite-dev
"
checkdepends="llvm-test-utils"
subpackages="$pkgname-doc"
source="https://github.com/rizsotto/Bear/archive/$pkgver/bear-$pkgver.tar.gz"
builddir="$srcdir/Bear-$pkgver"
# XXX: Tests fail when ccache is enabled.
# armv7, armhf and aarch64 have some failing tests.
case "$CARCH" in
armhf|armv7|aarch64) options="!check" ;;
esac
prepare() {
default_prepare
case "$CARCH" in
x86) rm -f test/cases/intercept/preload/signal_outside_build.sh ;;
esac
}
build() {
cmake -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_INSTALL_LIBEXECDIR=libexec/bear \
-DCMAKE_BUILD_TYPE=MinSizeRel
cmake --build build
}
check() {
cd build
ctest --verbose --output-on-failure
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
1380583e8e96833c9932d91dbae0d7cd8f86018ad5c610e8d3c8f9174f7362be3e095ede51e0dd14c0b10b023eb772038588bfdcb52617012299a99fea66a477 bear-3.1.1.tar.gz
"
|