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

_pkgname=RSL
pkgname=ros2-humble-rsl
pkgver=0.2.2
pkgrel=5
pkgdesc="ROS Support Library"
url="https://index.ros.org/p/rsl/"
arch=('any')
makedepends=(
    'range-v3'
    'cmake'
    'doxygen'
)
depends=(
    'ros2-humble' 
    'fmt'
    'ros2-humble-tl-expected'
    'eigen'
    'ros2-humble-tcb-span'
)
source=("https://github.com/PickNikRobotics/RSL/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('8c74f9e5a74d8ca46c952dcdc132bd8dceab9c104494cb03ade551ed49842d4b')


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

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

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