blob: bc131ffd12544f7f3e85dd1d12b7d85c5ad1875c (
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
|
# Maintainer: Tyler Veness <calcmogul at gmail dot com>
pkgname=wpimath
pkgver=2024.3.2
pkgrel=1
pkgdesc="WPILib's mathematics and controls library"
arch=('x86_64')
url='https://github.com/wpilibsuite/allwpilib'
depends=('fmt' 'eigen' 'protobuf')
makedepends=('cmake')
license=('BSD' 'MIT')
options=('!strip' 'staticlibs')
source=("git+https://github.com/wpilibsuite/allwpilib#tag=v$pkgver")
md5sums=('65f6c1cf2a97deaff0c9b7e9cad2046c')
build() {
cmake -B build -S "allwpilib" \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DUSE_SYSTEM_EIGEN=ON \
-DUSE_SYSTEM_FMTLIB=ON \
-DWITH_JAVA=OFF \
-DWITH_CSCORE=OFF \
-DWITH_NTCORE=OFF \
-DWITH_WPIMATH=ON \
-DWITH_WPILIB=OFF \
-DWITH_TESTS=ON \
-DWITH_GUI=OFF \
-DWITH_SIMULATION_MODULES=OFF \
-DNO_WERROR=ON \
-Wno-dev
cmake --build build
}
check() {
ctest --test-dir build --output-on-failure
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
|