blob: c87f480e1b71e7d48be54a48eadd1b5a4daa4394 (
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
|
pkgname=jellyplayer-git
pkgver=386a422
pkgrel=1
pkgdesc="Terminal-based Jellyfin player with MPV integration"
arch=('any')
url="https://github.com/AlexJonker/jellyplayer"
license=('MIT')
depends=('mpv' 'python' 'python-requests')
makedepends=('git' 'pyinstaller')
source=("git+$url.git")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/jellyplayer"
git rev-parse --short HEAD
}
package() {
cd "$srcdir/jellyplayer"
# Build the script with pyinstaller, strip debug symbols
pyinstaller --onefile --strip --clean main.py -n jellyplayer
# Install the resulting binary
install -Dm755 "dist/jellyplayer" "$pkgdir/usr/bin/jellyplayer"
# Install MPV config
install -d "$pkgdir/usr/share/jellyplayer/mpv_config"
cp -r mpv_config/* "$pkgdir/usr/share/jellyplayer/mpv_config/"
}
|