envision/dist/arch/PKGBUILD
2024-09-28 09:57:09 +00:00

60 lines
1.1 KiB
Bash

# Maintainer: Gabriele Musco <gabmus@disroot.org>
pkgname=envision-xr-git
pkgver=r633.4fad4f3
pkgrel=1
pkgdesc='GUI for Monado'
arch=(x86_64 aarch64)
url='https://gitlab.com/gabmus/envision'
license=(AGPL-3.0-or-later)
depends=(
gtk4
libadwaita
openxr
libgl
libdrm
vulkan-icd-loader
wayland
xr-hardware
cmake
eigen
git
ninja
shaderc
vulkan-headers
vte4
polkit
base-devel
jq
)
makedepends=(
meson
rust
)
optdepends=(
'libudev0-shim: steamvr_lh lighthouse driver support'
'monado-vulkan-layers-git: Vulkan layers for NVIDIA users'
)
provides=(envision)
conflicts=(envision)
source=("git+${url}.git")
b2sums=('SKIP')
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)"
)
}
build() {
arch-meson envision build
meson compile -C build
}
package() {
meson install -C build --no-rebuild --destdir "${pkgdir}"
}