blob: 8cc8c919fe52454e923d3a1c01eedbe114238ac9 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Maintainer: Nova King <technobaboo@proton.me>
pkgname="stardust-xr-server"
pkgver="0.45.1"
pkgrel="1"
pkgdesc="Usable Linux display server that reinvents human-computer interaction for all kinds of XR"
arch=("x86_64" "aarch64")
url="https://github.com/StardustXR/server"
license=("GPL-2.0-or-later")
depends=(
"libgl"
"libegl"
"mesa"
"libx11"
"libxfixes"
"fontconfig"
"libxkbcommon"
"libglvnd"
)
makedepends=(
"git"
"cargo"
"cmake"
"pkg-config"
)
provides=("stardust-server")
source=("git+https://github.com/StardustXR/server.git")
sha256sums=("SKIP")
options+=(!lto !debug !strip)
prepare() {
cd "${srcdir}/server"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "${srcdir}/server"
export CPM_USE_LOCAL_PACKAGES=1
export CPM_DOWNLOAD_ALL=1
export CXXFLAGS=
cargo build --release --target "${CARCH}-unknown-linux-gnu"
}
package() {
cd "${srcdir}/server"
install -Dm755 \
"target/${CARCH}-unknown-linux-gnu/release/${pkgname}" \
"${pkgdir}/usr/bin/${pkgname}"
install -Dm644 \
LICENSE \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 \
README.md \
"${pkgdir}/usr/share/doc/${pkgname}/README.md"
}
|