blob: 04f12d1e621e362e3a3b8c82958bf2c75615a6c1 (
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: Kino <cybao292261 at 163 dot com>
_pkgname=pcl_conversions
_metaname=perception_pcl
_distro=humble
pkgname="ros2-$_distro-${_pkgname/_/-}"
pkgver=2.4.5
pkgrel=1
pkgdesc="Provides conversions from PCL data types and ROS message types."
url="https://index.ros.org/p/$_pkgname/"
license=("BSD-3-Clause")
arch=('any')
makedepends=('cmake')
depends=(
"eigen"
"pcl"
"ros2-$_distro"
"ros2-$_distro-pcl-msgs"
)
checkdepends=('gtest')
source=("$pkgname-$pkgver.tar.gz::https://github.com/ros-perception/$_metaname/archive/$pkgver.tar.gz")
sha256sums=('018f1ceae604cae9e9beb1bbae31e79052f35c71bbbcedcf5adb44aaaf4aedab')
build() {
source /opt/ros/$_distro/setup.bash
cmake -B build -S $_metaname-$pkgver/$_pkgname \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/opt/ros/$_distro \
-Wno-dev
cmake --build build
}
check() {
cd build
ctest --output-on-failure
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
|