blob: f900a6f135fb8e9fd60c79880842cda08907ba6d (
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: YTJVDCM <50657624+YTJVDCM@users.noreply.github.com>
_pkgname='vrc-get'
pkgname=alcom
pkgver=1.0.1
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=(cairo desktop-file-utils gdk-pixbuf2 gcc-libs glibc glib2 gtk3 hicolor-icon-theme libsoup3 openssl pango webkit2gtk-4.1)
makedepends=(cargo cargo-about nodejs-lts-iron npm dotnet-sdk dotnet-runtime lld)
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=('f3b05c9237bb24401eea566e0f0d43bb3e8a191016bebd538323bfb509af2a6d' 'd232090f68d7a03159b333efe01afdd3228836d44bbd9cc55a36c234160986d9')
prepare() {
cd "$_pkgname-gui-v$pkgver"
# Disable updater for deb build
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"]}}'
}
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/$_pkgname-gui"
# 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/release/bundle/deb/ALCOM_${pkgver}_amd64/data/usr/share/icons" "$pkgdir/usr/share/"
install -Dm644 -t "$pkgdir/usr/share/applications/" "target/release/bundle/deb/ALCOM_${pkgver}_amd64/data/usr/share/applications/ALCOM.desktop"
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/bundle/deb/ALCOM_${pkgver}_amd64/data/usr/bin/ALCOM"
}
|