summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3958a521a4ecda4458f15a24e75eccd5a3925870 (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
33
34
35
36
37
38
39
40
41
# Maintainer: Angelo Elias Dal Zotto <angelodalzotto97@gmail.com>

_pkgroot=play_motion2
_pkgname=play_motion2
pkgname=ros2-humble-play-motion2
pkgver=0.0.8
pkgrel=2
pkgdesc="A tool to play and handle pre-recorded motions in ROS2"
url="https://github.com/pal-robotics/play_motion2/"
arch=('any')
makedepends=(
    'ros2-humble-controller-manager'
    'ros2-humble-hardware-interface'
    'ros2-humble-joint-state-broadcaster'
    'ros2-humble-joint-trajectory-controller'
    'ros2-humble-xacro'
    'cmake'
)
depends=(
    'ros2-humble'
    'ros2-humble-control-msgs'
    'ros2-humble-play-motion2-msgs'
)
source=("https://github.com/pal-robotics/play_motion2/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('2cb01f576e8c06a5f5c75f75dc3e61c9fb8149041236fc8afd2061b9f09edac2')


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

    cmake -B build -S "$_pkgroot-$pkgver/$_pkgname" \
        -DCMAKE_BUILD_TYPE='None' \
        -DCMAKE_INSTALL_PREFIX='/opt/ros/humble' \
        -Wno-dev
    
    cmake --build build
}

package() {
    DESTDIR="$pkgdir" cmake --install build
}