blob: 209a3e2ab3146099b716085aecb2e5e0d02daa3c (
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
|
# Maintainer: Carlos <prietus@live.com>
pkgname=jlfine-git
_pkgname=jlfine
pkgver=0.1.0.r0.g0000000
pkgrel=1
pkgdesc="Native Jellyfin desktop client with bit-perfect audio and HDR/Dolby Vision video (Slint + libmpv)"
arch=('x86_64')
url="https://github.com/prietus/jlfine"
license=('MIT')
# Runtime libraries the binary loads (libmpv, ALSA, D-Bus for the
# keyring, fontconfig + xkbcommon + GL + wayland for the Slint UI).
# Verify/trim with `namcap` against the built package.
depends=('mpv' 'alsa-lib' 'dbus' 'fontconfig' 'libxkbcommon' 'libglvnd' 'wayland')
makedepends=('cargo' 'git')
provides=('jlfine')
conflicts=('jlfine')
source=("$_pkgname::git+https://github.com/prietus/jlfine.git")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgname"
git describe --long --tags --abbrev=7 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "0.1.0.r%s.g%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
prepare() {
cd "$_pkgname"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$_pkgname"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release -p jlfine
}
package() {
install -Dm755 "$_pkgname/target/release/jlfine" "$pkgdir/usr/bin/jlfine"
install -Dm644 "$_pkgname/crates/jlfine-ui/ui/icon.png" "$pkgdir/usr/share/pixmaps/jlfine.png"
install -Dm644 "$_pkgname/packaging/jlfine.desktop" "$pkgdir/usr/share/applications/jlfine.desktop"
install -Dm644 "$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|