File: install-arch-additional-deps.sh

package info (click to toggle)
monado 25.0.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 22,708 kB
  • sloc: cpp: 175,132; ansic: 141,570; python: 2,913; java: 753; xml: 735; sh: 403; javascript: 255; makefile: 58
file content (40 lines) | stat: -rwxr-xr-x 745 bytes parent folder | download
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
#!/bin/bash
# Copyright 2023, Collabora, Ltd. and the Monado contributors
# SPDX-License-Identifier: BSL-1.0
cd $(dirname $0)

mkdir -p deps
pushd deps

# xr-hardware-git required by libsurvive-git
# libuvc required by basalt

for PKG in \
	xr-hardware-git \
	libsurvive-git \
	percetto-git \
	openhmd-git \
	librealsense \
	onnxruntime-git \
	leap-motion \
	libuvc-git \
	basalt-monado-git \

do
	wget https://aur.archlinux.org/cgit/aur.git/snapshot/"$PKG".tar.gz
	tar xfz "$PKG".tar.gz

	pushd "$PKG"

	# makepkg can not be run as root
	chown nobody:users .
	su nobody -s /bin/bash -c "MAKEFLAGS=-j$(nproc) makepkg -fs"

	pacman -U --noconfirm *.pkg.*
	popd
done

popd

# don't keep gigabytes of source code in the container image
rm -rf deps