mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-25 11:46:00 +00:00
Merge branch 'main' of gitlab.com:gabmus/envision
This commit is contained in:
commit
58f2589be8
1 changed files with 7 additions and 32 deletions
39
dist/arch/PKGBUILD
vendored
39
dist/arch/PKGBUILD
vendored
|
@ -1,8 +1,8 @@
|
|||
# Maintainer: Gabriele Musco <gabmus@disroot.org>
|
||||
|
||||
pkgname=envision-xr-git
|
||||
pkgver=r398.35b0ab9
|
||||
pkgrel=3
|
||||
pkgver=r633.4fad4f3
|
||||
pkgrel=1
|
||||
pkgdesc='GUI for Monado'
|
||||
arch=(x86_64 aarch64)
|
||||
url='https://gitlab.com/gabmus/envision'
|
||||
|
@ -43,9 +43,10 @@ options=(!lto)
|
|||
|
||||
pkgver() {
|
||||
cd envision
|
||||
( set -o pipefail
|
||||
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
|
||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
(
|
||||
set -o pipefail
|
||||
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' \
|
||||
|| printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -54,32 +55,6 @@ build() {
|
|||
meson compile -C build
|
||||
}
|
||||
|
||||
# check() {
|
||||
# meson test -C build --print-errorlogs
|
||||
# }
|
||||
|
||||
|
||||
package() {
|
||||
meson install -C build --destdir "${pkgdir}"
|
||||
|
||||
# We will check for optional packages here:
|
||||
# Check for NVIDIA GPU and if monado-vulkan-layers-git is not already installed
|
||||
if lspci | grep -qi nvidia && ! pacman -Qm monado-vulkan-layers-git &>/dev/null; then
|
||||
printf "\033[0;31m" # red
|
||||
echo -e "\n"
|
||||
echo "An NVIDIA GPU has been detected on your system."
|
||||
echo "For NVIDIA GPU, 'monado-vulkan-layers-git' from the AUR is recommended."
|
||||
echo "Please install it manually using an AUR helper, e.g., yay -S monado-vulkan-layers-git"
|
||||
printf "\033[0m" # no color
|
||||
fi
|
||||
|
||||
# Ask to install libudev0-shim
|
||||
if ! pacman -Q libudev0-shim &>/dev/null; then
|
||||
printf "\033[0;31m" # red
|
||||
echo -e "\n"
|
||||
echo "The package 'libudev0-shim' is recommended for lighthouse driver support."
|
||||
printf "\033[0m" # no color
|
||||
fi
|
||||
meson install -C build --no-rebuild --destdir "${pkgdir}"
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue