diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..887a6ee7f826 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Angelo Elias Dal Zotto <angelodalzotto97@gmail.com> + +_pkgname=twist_mux +pkgname=ros2-humble-twist-mux +pkgver=4.1.0 +pkgrel=1 +pkgdesc="Twist multiplexer, which multiplex several velocity commands (topics) and allows to priorize or disable them (locks)." +url="https://index.ros.org/p/twist_mux/" +arch=('any') +depends=( + 'ros2-humble' + 'ros2-humble-diagnostic-updater' +) +source=("https://github.com/ros-teleop/twist_mux/archive/refs/tags/${pkgver}.tar.gz") +sha256sums=('74df6cc84a9f24c7c794a4a7902b06683b535ffd4f9894b9fc663ab9d8fb01d4') + +prepare() { + source /opt/ros/humble/setup.bash + + cmake -S twist_mux-$pkgver -B build \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/opt/ros/humble +} + +build() { + make -C build +} + +package() { + make DESTDIR="$pkgdir/" -C build install +} |