blob: d5b0f23a82f34100ff9e698fcb5526027c344b58 (
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>
_clientname="non-spatial-input"
pkgdesc="Get your 2D input into Stardust XR and spatialize it"
pkgname="stardust-xr-$_clientname"
pkgver="0.1.0"
pkgrel="1"
arch=("x86_64" "aarch64")
url="https://github.com/StardustXR/$_clientname"
license=("MIT")
depends=(
"glibc"
"gcc-libs"
"systemd-libs"
"libinput"
"libxkbcommon"
"libxkbcommon-x11"
)
makedepends=(
"cargo"
"git"
)
source=(
"git+https://github.com/StardustXR/$_clientname.git"
)
sha256sums=("SKIP")
OPTIONS=(strip lto !debug)
prepare() {
cd "$srcdir/$_clientname"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "$srcdir/$_clientname"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --target "$CARCH-unknown-linux-gnu"
}
package() {
cd "$srcdir/$_clientname"
mkdir -p "$pkgdir/usr/bin"
install -Dm755 "target/$CARCH-unknown-linux-gnu/release/azimuth" "$pkgdir/usr/bin/"
install -Dm755 "target/$CARCH-unknown-linux-gnu/release/eclipse" "$pkgdir/usr/bin/"
install -Dm755 "target/$CARCH-unknown-linux-gnu/release/manifold" "$pkgdir/usr/bin/"
install -Dm755 "target/$CARCH-unknown-linux-gnu/release/simular" "$pkgdir/usr/bin/"
install -Dm644 \
LICENSE \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 \
README.md \
"$pkgdir/usr/share/doc/$pkgname/README.md"
}
|