summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9c27a34e37e292dacb4d38ca18f5090fbe27c9a9 (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

# Maintainer: Angelo Elias Dal Zotto <angelodalzotto97@gmail.com>

_pkgroot=joint_state_publisher
_pkgname=joint_state_publisher_gui
pkgname=ros2-humble-joint-state-publisher-gui
pkgver=2.3.0
pkgrel=3
pkgdesc="This package contains a GUI tool for setting and publishing joint state values for a given URDF"
url="https://index.ros.org/p/joint_state_publisher_gui/"
arch=('any')
makedepends=(python-build python-installer python-wheel)
depends=(
    'ros2-humble'
    'ros2-humble-joint-state-publisher'
)
source=("https://github.com/ros/joint_state_publisher/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('648d177b988b1da6316cea552cd999c37dd35ec514f7d1d9edd4a823ab2656d3')

prepare() {
    source /opt/ros/humble/setup.bash   
}

build() {
    cd "$_pkgroot-$pkgver/$_pkgname"
    python -m build --wheel --no-isolation 
}

package() {
    cd "$_pkgroot-$pkgver/$_pkgname"
    python -m installer --destdir="$pkgdir" --prefix="/opt/ros/humble" dist/*.whl
}