blob: 86806cee379a8401db1406dce8613b7a5d489d4b (
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
|
# Maintainer: Kirill Pshenichnyi <pshcyrill@mail.ru>
# 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
_pkgname=opentelemetry-cpp
_pkgver="1.18.0"
pkgver="1.18.0"
pkgrel=1
pkgdesc="The C++ OpenTelemetry client."
arch=('x86_64')
url="https://github.com/open-telemetry/"
license=('Apache')
depends=('grpc' 'nlohmann-json' 'benchmark' 'abseil-cpp' 'protobuf')
makedepends=('doxygen' 'cmake')
source=("https://github.com/open-telemetry/opentelemetry-cpp/archive/refs/tags/v${_pkgver}.tar.gz")
sha256sums=('b149109d5983cf8290d614654a878899a68b0c8902b64c934d06f47cd50ffe2e')
_dir="${_pkgname}-${_pkgver}"
build() {
cmake -B build -S "${_pkgname}-${_pkgver}" -DCMAKE_INSTALL_PREFIX=/usr \
-DWITH_OTLP_GRPC=ON -DWITH_OTLP_HTTP=ON -DBUILD_SHARED_LIBS=ON \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
make -C build
}
package() {
make -C build DESTDIR=${pkgdir} install
}
|