ros2-jazzy-sdformat_urdf
LOW
maintainer AutoUpdateBot
0 votes
scanned 2026-09-05 03:59:20.365640
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
3
pkgbase=ros2-jazzy-sdformat_urdf
4
pkgname=(
5
'ros2-jazzy-sdformat_test_files'
6
'ros2-jazzy-sdformat_urdf'
7
)
8
pkgver=1.0.2
9
pkgrel=1
10
pkgdesc="Convert SDFormat XML into a ROS 2 URDF C++ structure"
11
url="https://github.com/ros/sdformat_urdf"
12
arch=('x86_64')
13
license=('Apache-2.0')
14
depends=('ros2-jazzy')
15
makedepends=('cmake' 'urdfdom-headers' 'tinyxml2' 'ros2-jazzy-sdformat_vendor')
16
source=("$pkgbase-$pkgver.tar.gz::https://github.com/ros/sdformat_urdf/archive/refs/tags/${pkgver}.tar.gz")
17
sha256sums=('a6cb7b23fcf4243cc87a7de35a42b0d8dd3376f0a25e0599d84a9b93ca58c5d4')
18
19
_srcname="sdformat_urdf-$pkgver"
20
21
_build_cmake() {
22
local _sub="$1"
23
shift
24
25
source /opt/ros/jazzy/setup.bash
26
27
local _prefix='' _dep
28
for _dep in "$@"; do
29
_prefix+="$srcdir/_staging/$_dep/opt/ros/jazzy:"
30
done
31
32
CMAKE_PREFIX_PATH="${_prefix}${CMAKE_PREFIX_PATH}" \
33
cmake -B "$srcdir/build-$_sub" -S "$srcdir/$_srcname/$_sub" \
34
-DCMAKE_BUILD_TYPE='None' \
35
-DCMAKE_INSTALL_PREFIX='/opt/ros/jazzy' \
36
-DBUILD_TESTING=OFF \
37
-Wno-dev
38
cmake --build "$srcdir/build-$_sub"
39
DESTDIR="$srcdir/_staging/$_sub" cmake --install "$srcdir/build-$_sub"
40
}
41
42
build() {
43
rm -rf "$srcdir/_staging"
44
45
# sdformat_urdf embeds __FILE__ build paths in its plugin library.
46
export CFLAGS+=" -ffile-prefix-map=$srcdir=/usr/src/debug/$pkgbase"
47
export CXXFLAGS+=" -ffile-prefix-map=$srcdir=/usr/src/debug/$pkgbase"
48
49
_build_cmake sdformat_test_files
50
_build_cmake sdformat_urdf
51
}
52
53
package_ros2-jazzy-sdformat_test_files() {
54
pkgdesc="SDFormat sample model files used by sdformat_urdf tests"
55
depends=('ros2-jazzy')
56
57
cp -a "$srcdir/_staging/sdformat_test_files/." "$pkgdir/"
58
install -Dm644 "$srcdir/$_srcname/sdformat_urdf/LICENSE" \
59
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
60
}
61
62
package_ros2-jazzy-sdformat_urdf() {
63
pkgdesc="Convert SDFormat XML into a ROS 2 URDF C++ structure"
64
depends=('ros2-jazzy' 'ros2-jazzy-sdformat_vendor' 'sdformat14')
65
66
cp -a "$srcdir/_staging/sdformat_urdf/." "$pkgdir/"
67
install -Dm644 "$srcdir/$_srcname/sdformat_urdf/LICENSE" \
68
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
69
}
70
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-05 03:59:20 | Low | 1 |