summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 239eb4863db3e3375405bee92d8a4ccb6be79bad (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: insmtr <insmtr@insmtr.cn>
# Contributor: Angelo Elias Dal Zotto <angelodalzotto97@gmail.com>

_pkgname=angles
pkgname=ros2-humble-angles
pkgver=1.16.0
pkgrel=1
pkgdesc="This package provides a set of simple math utilities to work with angles"
url="https://index.ros.org/p/angles/"
arch=('any')
makedepends=('cmake' 'python-setuptools')
depends=('ros2-humble')
source=("$_pkgname-$pkgver.tar.gz::https://github.com/ros/angles/archive/${pkgver}.tar.gz")
sha256sums=('SKIP')

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

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

    cmake --build build
}

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