blob: c4b40f434120f486eab808d530e50e751ef272f8 (
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
|
# Maintainer: Angelo Elias Dal Zotto <angelodalzotto97@gmail.com>
_pkgname=cv_bridge
pkgname=ros2-humble-cv-bridge
pkgver=3.2.1
pkgrel=2
pkgdesc="This contains CvBridge, which converts between ROS Image messages and OpenCV images."
url="https://index.ros.org/p/cv_bridge/"
arch=('any')
makedepends=(
'boost'
)
depends=(
'ros2-humble'
'opencv'
'python-numpy'
'python-opencv'
)
source=("https://github.com/ros-perception/vision_opencv/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('bf8a18770ffe3335e9bf96cb89be886a846be10382e67c2dc93cd4e387b2c3f9')
prepare() {
source /opt/ros/humble/setup.bash
cmake -S vision_opencv-$pkgver/$_pkgname -B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/opt/ros/humble
}
build() {
source /opt/ros/humble/setup.bash
make -C build
}
package() {
make DESTDIR="$pkgdir/" -C build install
}
|