summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7483eb4f015d672590b0e2a54f664e6695ce7d14 (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
pkgname=playfin
pkgver=r91.4b7d2d3
pkgrel=1
pkgdesc="Terminal-based Jellyfin player with MPV integration"
arch=('any')
url="https://github.com/AlexJonker/playfin"
license=('MIT')
depends=('mpv' 'python' 'python-requests')
makedepends=('git' 'pyinstaller')
source=("git+$url.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/playfin"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

package() {
  cd "$srcdir/playfin"

  pyinstaller --onefile --strip --clean main.py -n playfin
  
  install -Dm755 "dist/playfin" "$pkgdir/usr/bin/playfin"

  install -d "$pkgdir/usr/share/playfin/mpv_config"
  cp -r mpv_config/* "$pkgdir/usr/share/playfin/mpv_config/"
}