blob: fd9f1dfdcccb464b173b5d8e03b591a3289668bd (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# MAINTAINER: haagch <christoph.haag@collabora.com>
pkgname=basalt-monado-git
pkgver=r492.ce92fa7
pkgrel=1
pkgdesc="Visual-Inertial Mapping with Non-Linear Factor Recovery"
arch=('i686' 'x86_64')
url="https://gitlab.freedesktop.org/mateosss/basalt"
license=('BSD')
depends=('eigen' 'glew' 'libpng' 'lz4' 'bzip2' 'boost' 'gtest' 'opencv' 'libpng' 'lz4' 'bzip2' 'libuvc' 'fmt' 'python')
optdepends=('librealsense: Intel realsense support')
makedepends=('cmake' 'ninja' 'git')
_pkgname="basalt"
source=('git+https://gitlab.freedesktop.org/mateosss/basalt.git#branch=main'
'279c17d9c9eb9374c89489b449f92cb93350e8cd.patch')
sha256sums=('SKIP'
'04d4185309a72be30f508a9961c54b5cf69da323f54ea754482a79a999914b4c')
provides=("basalt-monado")
conflicts=("basalt-monado")
#options=('debug' '!strip')
options=('!strip')
pkgver() {
cd "$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$_pkgname"
git submodule update --init --recursive
}
build() {
msg "Starting CMake"
cd "$_pkgname"
# -g1: Level 1 produces minimal information, enough for making backtraces in parts of the program that you don’t plan to debug.
# export CFLAGS="-g1"
# export CXXFLAGS="$CFLAGS"
# -DBASALT_BUILD_SHARED_LIBRARY_ONLY=ON remove this if you want to build all of basalt
cmake \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_BUILD_TYPE="RelWithDebInfo" \
-DBUILD_TESTS=OFF \
-DBASALT_INSTANTIATIONS_DOUBLE=OFF \
-DBASALT_BUILD_SHARED_LIBRARY_ONLY=ON \
-Bbuild \
-GNinja
msg "Building the project"
ninja -C build
}
package() {
cd "$_pkgname"
msg "Installing files"
DESTDIR="${pkgdir}/" ninja -C build install
}
|