blob: 29237f3b66eb6947503a6e7c689ad6c03bb27efe (
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
40
41
42
43
|
# Maintainer: oysstu <oysstu at gmail dot com>
pkgname=gz-sensors9
pkgver=9.0.0
pkgrel=1
_pkgmaj=${pkgver%%.*}
_pkgbase=${pkgname::-${#_pkgmaj}}
pkgdesc="Provides numerous sensor models designed to generate realistic data from simulation environments."
arch=('any')
url="https://github.com/gazebosim/${_pkgbase}"
license=('Apache')
depends=(
'gz-common=6'
'gz-math=8'
'gz-msgs=11'
'gz-rendering=9'
'gz-transport=14'
'protobuf'
'sdformat=15'
)
makedepends=(
'cmake'
'doxygen'
'gz-cmake=4'
)
provides=("${_pkgbase}=${_pkgmaj}")
source=("https://github.com/gazebosim/${_pkgbase}/archive/${pkgname}_${pkgver}.tar.gz")
sha256sums=('de4072ad372db6c3f511ff4534410767fb0def1972d83c8894e0ee794358a5ec')
_build_dir="${_pkgbase}-${pkgname}_${pkgver}/build"
build() {
mkdir -p "$srcdir/$_build_dir" && cd $_
cmake .. -DCMAKE_BUILD_TYPE='None' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DBUILD_TESTING=OFF \
-Wno-dev
cmake --build .
}
package() {
DESTDIR="$pkgdir" cmake --install "$srcdir/$_build_dir"
}
|