blob: b98f702f05167ab7e15ac495ad97960903e8bd48 (
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
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Maintainer: James Tucker <jftucker@gmail.com>
# Contributor: Chris Sutcliff <chris@sutcliff.me>
# Contributor: Jonathan Bangert <jonathan@bangert.dk>
pkgname=music-assistant-desktop
pkgver=0.3.4
pkgrel=1
pkgdesc="Music Assistant Desktop Companion App"
arch=('x86_64')
url="https://github.com/music-assistant/desktop-app"
license=('Apache-2.0')
depends=(
'cairo'
'gdk-pixbuf2'
'glib2'
'gtk3'
'hicolor-icon-theme'
'libsoup3'
'openssl'
'webkit2gtk-4.1'
)
makedepends=(
'cargo'
'cargo-tauri'
'curl'
'file'
'libappindicator-gtk3'
'librsvg'
'nodejs'
'rust'
'wget'
'yarn'
)
optdepends=(
'libappindicator-gtk3: system tray support'
)
conflicts=('music-assistant-desktop-git' 'music-assistant-desktop-bin' 'music-assistant-companion-git' 'music-assistant-app-git' 'music-assistant-desktop-app-git')
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('d4e16c92e5cdc908dcd4724dfe118b84d740d0ec463d8e2b8e1c9845704fcadb')
# ring + lto is failing: https://github.com/briansmith/ring/issues/2746
options=('!lto')
prepare() {
cd "$srcdir/desktop-app-$pkgver"
export CARGO_HOME="$srcdir/cargo-home"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" --manifest-path src-tauri/Cargo.toml
yarn install --frozen-lockfile
}
build() {
cd "$srcdir/desktop-app-$pkgver"
export CARGO_HOME="$srcdir/cargo-home"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR="$srcdir/target"
# We can use `export CARGO_PROFILE_RELEASE_TRIM_PATHS=true` once stable in cargo.
export RUSTFLAGS="${RUSTFLAGS} --remap-path-prefix=$srcdir=/build"
# Build the Tauri application with deb bundle for easy extraction
cargo tauri build --bundles deb
}
package() {
cd "$srcdir/desktop-app-$pkgver"
# Copy from deb bundle data directory
cp -dR --preserve=mode,timestamps \
"$srcdir/target/release/bundle/deb"/*/data/usr \
-t "$pkgdir"
# Install license
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|