summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 89203fd77db4f3f7d37d530c3e4c141c7003a6da (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
_pkgname=octomap_msgs
pkgname=ros2-humble-octomap-msgs
pkgver=2.0.0
pkgrel=1
pkgdesc="Messages and serializations / conversion for the OctoMap library."
url="https://index.ros.org/p/octomap_msgs/"
arch=('any')
depends=('ros2-humble')
source=("https://github.com/OctoMap/$_pkgname/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('ef273be4b931eacce289ec664a0515d215e1970954d7818df3151e0f2aa90735')

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

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

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