blob: 9ffc9680a2652b678b986eff85da115d1ec970b7 (
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
44
|
# Maintainer: Kartik Mohta <kartikmohta@gmail.com>
pkgname=gtsam
pkgver=4.2.0
pkgrel=2
pkgdesc="A library of C++ classes that implement smoothing and mapping (SAM) in\
robotics and vision, using factor graphs and Bayes networks as the underlying\
computing paradigm rather than sparse matrices."
url="https://gtsam.org/"
arch=('x86_64' 'i686')
provides=("gtsam=${pkgver}")
conflicts=('gtsam-git' 'gtsam-mkl')
license=('BSD')
depends=('boost-libs' 'eigen')
makedepends=('boost' 'cmake')
optdepends=('intel-tbb: Use Intel TBB to accelerate computations (add this to the depends section of the PKGBUILD and rebuild the package)')
source=("https://github.com/borglab/${pkgname}/archive/${pkgver}.tar.gz")
sha256sums=('8b44d6b98a3b608664d1c9a7c1383a406550499d894533bb0183e6cf487e6457')
build() {
cmake -B build -S "${pkgname}-${pkgver}" \
-DCMAKE_BUILD_TYPE='None' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-Wno-dev \
-DGTSAM_BUILD_DOCS=OFF \
-DGTSAM_BUILD_EXAMPLES_ALWAYS=OFF \
-DGTSAM_BUILD_TESTS=OFF \
-DGTSAM_BUILD_WITH_CCACHE=OFF \
-DGTSAM_BUILD_WITH_MARCH_NATIVE=OFF \
-DGTSAM_INSTALL_CPPUNITLITE=OFF \
-DGTSAM_INSTALL_GEOGRAPHICLIB=OFF \
-DGTSAM_USE_SYSTEM_EIGEN=ON
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
# check() {
# ctest --test-dir build --output-on-failure
# }
# vim:set ts=2 sw=2 et:
|