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

_pkgroot=generate_parameter_library
_pkgname=generate_parameter_library
pkgname=ros2-humble-generate-parameter-library
pkgver=0.3.3
pkgrel=2
pkgdesc="CMake to generate ROS parameter library"
url="https://index.ros.org/p/generate_parameter_library/"
arch=('any')
depends=(
    'ros2-humble' 
    'fmt'
    'ros2-humble-tl-expected'
    'ros2-humble-parameter-traits'
    'ros2-humble-rsl'
    'ros2-humble-tcb-span'
    'ros2-humble-generate-parameter-library-py'
)
makedepends=('cmake')
source=("https://github.com/PickNikRobotics/generate_parameter_library/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('f1fd0bd411191a68ce70833c97aa0925525951127709819eb00e7a4007f5447e')


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
}