summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 246cbb2fc0d795a8351592ec158a417ef47fe9c6 (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
# Maintainer: Nova King <technobaboo@protonmail.com>

pkgname=stardust-xr-git
_pkgname=stardust-xr
pkgver=r734.3261dc7
pkgrel=1

pkgdesc="Reference server implementation for Stardust XR using StereoKit"
arch=('x86_64' 'aarch64' 'armv7l')
url="https://stardustxr.org/"
license=('GPL2')

provides=('stardust-xr')
depends=('libstardustxr' 'openxr>=1.0.16' 'fontconfig' 'libegl' 'libgl' 'xcb-util-wm' 'libxkbcommon' 'seatd' 'pixman')
makedepends=('git' 'meson>=0.55.0' 'cmake' 'wayland-protocols' 'xorgproto')

source=(git+https://github.com/StardustXR/stardust-xr.git)
sha256sums=('SKIP')

pkgver() {
	cd "$srcdir/$_pkgname"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
	cd "$srcdir/$_pkgname"
	git submodule init
	git submodule update
}

build() {
	arch-meson -D b_lto=false "stardust-xr" build
	meson compile -C build
}

package() {
	meson install -C build --destdir "$pkgdir" --skip-subprojects
}