summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5c4e7099f36b0cf70756a1c77208bbf823335ca7 (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
# Maintainer: Angelo Elias Dal Zotto <angelodalzotto97@gmail.com>

_pkgname=teleop_twist_keyboard
pkgname=ros2-humble-teleop-twist-keyboard
pkgver=2.3.2
pkgrel=4
pkgdesc="A robot-agnostic teleoperation node to convert keyboard commands to Twist messages"
url="https://index.ros.org/p/teleop_twist_keyboard/"
arch=('any')
depends=('ros2-humble')
makedepends=(python-build python-installer python-wheel)
source=("https://github.com/ros2/teleop_twist_keyboard/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('8a7bf99f672759a45d23c8c5ac0b7ad32647f31373ff273adf9d45609aeb848b')


build() {
    source /opt/ros/humble/setup.bash

    cd "$_pkgname-$pkgver"
    python -m build --wheel --no-isolation 
}

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