blob: 0a736437e265abd40b79eb8571e522a4941516a7 (
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
57
58
59
60
|
# Maintainer: YTJVDCM <50657624+YTJVDCM@users.noreply.github.com>
_pkgname='vrc-get'
pkgname=alcom
pkgver=1.1.6
pkgrel=1
pkgdesc="A fast open-source alternative of VRChat Creator Companion (VCC)"
arch=('x86_64')
url='https://github.com/vrc-get/vrc-get'
license=('MIT')
depends=(gtk3 openssl webkit2gtk-4.1)
makedepends=(cargo nodejs npm)
optdepends=('unityhub: Used to open created projects and migrate projects from older versions of Unity.')
options+=(!lto)
source=("$pkgname-$pkgver.tar.gz::${url}/archive/refs/tags/gui-v${pkgver}.tar.gz" "build.patch")
sha256sums=('0e71d84b931f436e38169e146d19f13c4b8491ad5b60b04dead7c4016654cc1b' 'e7bcacd22702629cbadc907edad11b48dbb740f45f21bb70813761b818509e59')
prepare() {
cd "$_pkgname-gui-v$pkgver"
patch -p 1 -i "${srcdir}/build.patch"
cd "$_pkgname-gui"
export RASTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$_pkgname-gui-v$pkgver/$_pkgname-gui"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
# npm run tauri build
# npm run -- tauri build --config '{"bundle":{"targets":["deb"]}}'
cargo xtask build-alcom --release --no-self-updater --target 'x86_64-unknown-linux-gnu'
cd "$srcdir/$_pkgname-gui-v$pkgver"
cargo xtask bundle-alcom --release --target 'x86_64-unknown-linux-gnu' --bundles buildroot --buildroot 'target/x86_64-unknown-linux-gnu/release/bundle/'
}
check() {
cd "$_pkgname-gui-v$pkgver/$_pkgname-gui"
export RUSTUP_TOOLCHAIN=stable
cargo test -p vrc-get-gui --frozen --all-features
}
package() {
cd "$_pkgname-gui-v$pkgver"
# mv "target/release/bundle/deb/ALCOM_${pkgver}_amd64/data/usr/bin/ALCOM" "target/release/bundle/deb/ALCOM_${pkgver}_amd64/data/usr/bin/$pkgname"
install -Dm644 ./LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
cp -ar "target/x86_64-unknown-linux-gnu/release/bundle/usr/share/icons" "$pkgdir/usr/share/"
install -Dm644 -t "$pkgdir/usr/share/applications/" "target/x86_64-unknown-linux-gnu/release/bundle/usr/share/applications/alcom.desktop"
install -Dm0755 -t "$pkgdir/usr/bin/" "target/x86_64-unknown-linux-gnu/release/bundle/usr/bin/alcom"
}
|