blob: b32e5303cd1fda2ea2a0d3d0d7ca9b6265e5810a (
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
|
# Maintainer: Kino <cybao292261 at 163 dot com>
_pkgname=pcl_ros
_metaname=perception_pcl
_distro=humble
pkgname="ros2-$_distro-${_pkgname/_/-}"
pkgver=2.4.5
pkgrel=1
pkgdesc="PCL-ROS is the preferred bridge for 3D applications involving n-D Point Clouds and 3D geometry processing in ROS."
url="https://index.ros.org/p/$_pkgname/"
license=("BSD-3-Clause")
arch=('any')
makedepends=('cmake')
depends=(
"eigen"
"pcl"
"ros2-$_distro"
"ros2-$_distro-pcl-conversions"
)
#checkdepends=('cppcheck' 'flake8' 'gtest' 'python-pydocstyle')
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 \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_TESTING=ON \
-Wno-dev
cmake --build build
}
#check() {
# ctest --test-dir build --output-on-failure
#}
package() {
DESTDIR="$pkgdir" cmake --install build
}
|