mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-27 10:10:17 +00:00
879d8ddaa7
Also incorporate changes from !1719 into the templates
41 lines
745 B
Bash
Executable file
41 lines
745 B
Bash
Executable file
#!/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
|