blob: bf3f12d2f7c445c90da2d5f704f908e61fa93f9a (
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
|
# Maintainer:
pkgname=eprosima-fast-dds-statistics-backend
pkgver=2.1.0
pkgrel=1
pkgdesc='eProsima Fast DDS Statistics Backend is a C++ library that provides collection and procession the statistics measurements reported by Fast DDS Statistics Module.'
arch=('x86_64')
url='https://github.com/eProsima/Fast-DDS-statistics-backend'
license=('Apache')
makedepends=('ninja' 'cmake')
depends=('tinyxml' 'asio' 'eprosima-fast-cdr' 'eprosima-fast-dds') # for documentation add: 'doxygen' 'python' 'python-pip' 'python-virtualenv' 'python-sphinx' 'python-breathe' 'python-sphinxcontrib-spelling' 'python-doc8' 'imagemagick'
provides=('eprosima-fast-dds-statistics-backend')
_build_directory=build
_install_directory=/usr
source=(
"https://github.com/eProsima/Fast-DDS-statistics-backend/archive/refs/tags/v${pkgver}.tar.gz"
)
sha512sums=(
"0002941120b23053f439773c7d90702fa996dbe3c84b069c4148ce75e0af98c38facd18297c549218ab4705bce46e0af03205714945522c4826ce935c5e2a42f"
)
prepare() {
build_type=Release
cmake -G Ninja \
-S "${srcdir}"/Fast-DDS-statistics-backend-${pkgver} \
-B "${srcdir}"/${_build_directory} \
-DCMAKE_BUILD_TYPE=${build_type} \
-DCMAKE_INSTALL_PREFIX:PATH=${_install_directory} \
-DBUILD_SHARED_LIBS=ON \
-DCOMPILE_EXAMPLES=OFF \
-DBUILD_TESTS=OFF \
-DBUILD_LIBRARY_TESTS=ON \
-DBUILD_DOCUMENTATION=OFF
}
build() {
cd "${srcdir}"/${_build_directory}
ninja
}
package() {
cd "${srcdir}"/${_build_directory}
DESTDIR="${pkgdir}" ninja install
mkdir -p "${pkgdir}"/usr/share/licenses/eprosima/fastdds_statistics_backend
mv "${pkgdir}"/usr/share/fastdds_statistics_backend/LICENSE "${pkgdir}"/usr/share/licenses/eprosima/fastdds_statistics_backend/LICENSE
rmdir "${pkgdir}"/usr/share/fastdds_statistics_backend
}
|