ros2-jazzy-ros_gz

LOW
maintainer AutoUpdateBot 0 votes scanned 2026-09-05 03:59:20.365640
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1# Maintainer: AutoUpdateBot <auto-update-bot@arch4edu.org>
2
3pkgbase=ros2-jazzy-ros_gz
4pkgname=(
5 'ros2-jazzy-ros_gz_interfaces'
6 'ros2-jazzy-ros_gz_bridge'
7 'ros2-jazzy-ros_gz_image'
8 'ros2-jazzy-ros_gz_sim'
9 'ros2-jazzy-ros_gz_sim_demos'
10 'ros2-jazzy-ros_gz'
11)
12pkgver=1.0.24
13pkgrel=1
14pkgdesc="ROS 2 Jazzy integration with the Gazebo (Harmonic) simulator"
15url="https://index.ros.org/p/ros_gz/"
16arch=('x86_64')
17license=('Apache-2.0')
18depends=('ros2-jazzy')
19makedepends=(
20 'cmake'
21 'cli11'
22 'gflags'
23 'pkgconf'
24 'ros2-jazzy-gz-msgs-vendor'
25 'ros2-jazzy-gz-transport-vendor'
26 'ros2-jazzy-gz-sim-vendor'
27 'ros2-jazzy-actuator_msgs'
28 'ros2-jazzy-gps_msgs'
29 'ros2-jazzy-marine_acoustic_msgs'
30 'ros2-jazzy-vision_msgs'
31 'ros2-jazzy-simulation_interfaces'
32)
33source=("$pkgbase-$pkgver.tar.gz::https://github.com/gazebosim/ros_gz/archive/refs/tags/${pkgver}.tar.gz")
34sha256sums=('d7596d2c9a45e4a21948eaacfd5b1161d5fba85b5bc196301e61a85765deab51')
35
36_srcname="ros_gz-$pkgver"
37
38_build_cmake() {
39 local _sub="$1"
40 shift
41
42 source /opt/ros/jazzy/setup.bash
43
44 # The base ros2-jazzy gz_math_vendor ships a -extras.cmake that prepends a
45 # leaked build path (/build/ros2-jazzy/src/install/...) instead of the
46 # installed one, so find_package(gz-math) cannot locate the versionless
47 # config. Prepend the correct extra_cmake directory to recover it.
48 export CMAKE_PREFIX_PATH="/opt/ros/jazzy/opt/gz_math_vendor/extra_cmake:${CMAKE_PREFIX_PATH}"
49
50 local _prefix='' _dep
51 for _dep in "$@"; do
52 _prefix+="$srcdir/_staging/$_dep/opt/ros/jazzy:"
53 done
54
55 CMAKE_PREFIX_PATH="${_prefix}${CMAKE_PREFIX_PATH}" \
56 cmake -B "$srcdir/build-$_sub" -S "$srcdir/$_srcname/$_sub" \
57 -DCMAKE_BUILD_TYPE='None' \
58 -DCMAKE_INSTALL_PREFIX='/opt/ros/jazzy' \
59 -DBUILD_TESTING=OFF \
60 -Wno-dev
61 cmake --build "$srcdir/build-$_sub"
62 DESTDIR="$srcdir/_staging/$_sub" cmake --install "$srcdir/build-$_sub"
63}
64
65build() {
66 rm -rf "$srcdir/_staging"
67
68 # Compiled bridge/sim/image libraries embed __FILE__ build paths.
69 export CFLAGS+=" -ffile-prefix-map=$srcdir=/usr/src/debug/$pkgbase"
70 export CXXFLAGS+=" -ffile-prefix-map=$srcdir=/usr/src/debug/$pkgbase"
71
72 _build_cmake ros_gz_interfaces
73 _build_cmake ros_gz_bridge ros_gz_interfaces
74 _build_cmake ros_gz_image ros_gz_bridge ros_gz_interfaces
75 _build_cmake ros_gz_sim ros_gz_interfaces
76 _build_cmake ros_gz_sim_demos
77 _build_cmake ros_gz
78}
79
80package_ros2-jazzy-ros_gz_interfaces() {
81 pkgdesc="Message and service definitions for interacting with Gazebo from ROS 2"
82 depends=('ros2-jazzy')
83
84 cp -a "$srcdir/_staging/ros_gz_interfaces/." "$pkgdir/"
85 install -Dm644 "$srcdir/$_srcname/LICENSE" \
86 "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
87}
88
89package_ros2-jazzy-ros_gz_bridge() {
90 pkgdesc="Bridge that enables the exchange of messages between ROS 2 and Gazebo Transport"
91 depends=(
92 'ros2-jazzy'
93 'ros2-jazzy-ros_gz_interfaces'
94 'ros2-jazzy-gz-msgs-vendor'
95 'ros2-jazzy-gz-transport-vendor'
96 'ros2-jazzy-actuator_msgs'
97 'ros2-jazzy-gps_msgs'
98 'ros2-jazzy-marine_acoustic_msgs'
99 'ros2-jazzy-vision_msgs'
100 )
101
102 cp -a "$srcdir/_staging/ros_gz_bridge/." "$pkgdir/"
103 install -Dm644 "$srcdir/$_srcname/LICENSE" \
104 "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
105}
106
107package_ros2-jazzy-ros_gz_image() {
108 pkgdesc="Utilities for using Gazebo Transport image messages with ROS 2 image_transport"
109 depends=(
110 'ros2-jazzy'
111 'ros2-jazzy-ros_gz_bridge'
112 'ros2-jazzy-gz-msgs-vendor'
113 'ros2-jazzy-gz-transport-vendor'
114 )
115
116 cp -a "$srcdir/_staging/ros_gz_image/." "$pkgdir/"
117 install -Dm644 "$srcdir/$_srcname/LICENSE" \
118 "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
119}
120
121package_ros2-jazzy-ros_gz_sim() {
122 pkgdesc="Tools and launch files for running the Gazebo simulator from ROS 2"
123 depends=(
124 'ros2-jazzy'
125 'ros2-jazzy-ros_gz_interfaces'
126 'ros2-jazzy-gz-msgs-vendor'
127 'ros2-jazzy-gz-transport-vendor'
128 'ros2-jazzy-gz-sim-vendor'
129 'ros2-jazzy-simulation_interfaces'
130 )
131
132 cp -a "$srcdir/_staging/ros_gz_sim/." "$pkgdir/"
133 install -Dm644 "$srcdir/$_srcname/LICENSE" \
134 "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
135}
136
137package_ros2-jazzy-ros_gz_sim_demos() {
138 pkgdesc="Demos for using ROS 2 with the Gazebo simulator"
139 depends=(
140 'ros2-jazzy'
141 'ros2-jazzy-ros_gz_bridge'
142 'ros2-jazzy-ros_gz_image'
143 'ros2-jazzy-ros_gz_sim'
144 'ros2-jazzy-image_transport_plugins'
145 'ros2-jazzy-rqt_image_view'
146 'ros2-jazzy-sdformat_urdf'
147 'ros2-jazzy-xacro'
148 'ros2-jazzy-marine_acoustic_msgs'
149 )
150
151 cp -a "$srcdir/_staging/ros_gz_sim_demos/." "$pkgdir/"
152 install -Dm644 "$srcdir/$_srcname/LICENSE" \
153 "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
154}
155
156package_ros2-jazzy-ros_gz() {
157 pkgdesc="Metapackage pulling in the full ROS 2 / Gazebo integration stack"
158 depends=(
159 'ros2-jazzy-ros_gz_bridge'
160 'ros2-jazzy-ros_gz_image'
161 'ros2-jazzy-ros_gz_sim'
162 'ros2-jazzy-ros_gz_sim_demos'
163 )
164
165 cp -a "$srcdir/_staging/ros_gz/." "$pkgdir/"
166 install -Dm644 "$srcdir/$_srcname/LICENSE" \
167 "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
168}
169

Scan history

Scanned at (UTC)SeverityRules
2026-09-05 03:59:20 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion