blob: 677d1e5994426b3d2f3185b6135deeed1bdac7ae (
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
|
# Maintainer: Kirill Pshenichnyi <pshcyrill@mail.ru>
# Maintainer: Antonio Bartalesi <antonio.bartalesi@gmail.com>
# Contributor: The OpenTelemetry C/C++ special interest group (SIG)
# meets regularly. See the OpenTelemetry community repo for
# information on this and other language SIGs.
# (https://github.com/open-telemetry/community)
pkgname=opentelemetry-cpp
pkgver="1.20.0"
_proto_version="1.5.0"
pkgrel=1
pkgdesc="The C++ OpenTelemetry client."
arch=("x86_64" "armv7h")
url="https://github.com/open-telemetry/"
license=("Apache-2.0")
depends=("grpc" "nlohmann-json" "benchmark" "abseil-cpp" "protobuf" "curl")
makedepends=("doxygen" "cmake")
source=(
"https://github.com/open-telemetry/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz"
"https://github.com/open-telemetry/opentelemetry-proto/archive/refs/tags/v${_proto_version}.tar.gz"
)
sha256sums=(
"4b6eeb852f075133c21b95948017f13a3e21740e55b921d27e42970a47314297"
"08f40636adbc5f33d2084bd8e7b64e491dd0239d1a95021dbffbdf1ca8cea454"
)
build() {
cmake -B build -S "${pkgname}-${pkgver}" -DCMAKE_INSTALL_PREFIX=/usr \
-DOTELCPP_PROTO_PATH="${srcdir}/opentelemetry-proto-${_proto_version}" \
-DWITH_OTLP_GRPC=ON -DWITH_OTLP_HTTP=ON -DBUILD_SHARED_LIBS=ON \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON -DOPENTELEMETRY_INSTALL=ON
make -C build
}
check() {
ctest --test-dir build
}
package() {
make -C build DESTDIR=${pkgdir} install
}
|