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

_pkgname=play_motion2_msgs
pkgname=ros2-humble-play-motion2-msgs
pkgver=0.0.5
pkgrel=2
pkgdesc="associated messages to play and handle pre-recorded motions in ROS2"
url="https://github.com/pal-robotics/play_motion2/"
arch=('any')
depends=('ros2-humble')
source=("https://github.com/pal-robotics/play_motion2/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('49195d29e6d05b4c8a3404369f40de14c2644e14ce3982e9c568bd841931260f')

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

    cmake -S play_motion2-$pkgver/$_pkgname -B build \
        -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_PREFIX=/opt/ros/humble
}

build() {
source /opt/ros/humble/setup.bash
    make -C build
}

package() {
    make DESTDIR="$pkgdir/" -C build install
}