jellyfin-media-player/PKGBUILD

30 lines
1.1 KiB
Bash

# Maintainer: Andrew Rabert <ar@nullsum.net>
pkgname=jellyfin-media-player
pkgver=1.3.1
pkgrel=1
pkgdesc='Jellyfin Desktop Client'
arch=('i686' 'x86_64')
license=('GPL')
url='https://github.com/iwalton3/jellyfin-media-player'
depends=('mpv' 'libcec' 'sdl2' 'p8-platform' 'protobuf' 'qt5-webengine' 'qt5-x11extras' 'qt5-quickcontrols')
makedepends=('cmake' 'git')
source=("https://github.com/iwalton3/jellyfin-media-player/archive/refs/tags/v${pkgver}.tar.gz"
'jwc-10.7.2.tar.gz::https://github.com/iwalton3/jellyfin-web-jmp/releases/download/jwc-10.7.2/dist.zip')
sha256sums=('b4e5062c08ad9f7560ae2aff4314e5d5d92c0815913d8c0bbe50bfba74b9ff96'
'ad689fba79e7aa3fb0b39e20ecc7f75776d0872fd39c4e4506f0ef12b6f90210')
build() {
cd "${srcdir}/jellyfin-media-player-${pkgver}"
mkdir -p build
cd build
cp -r "${srcdir}/dist" .
cmake -DCMAKE_INSTALL_PREFIX='/usr/' -DCMAKE_BUILD_TYPE='Release' -DQTROOT=./qt -DCMAKE_SKIP_RPATH=1 ..
make
}
package() {
cd "${srcdir}/jellyfin-media-player-${pkgver}/build"
DESTDIR="${pkgdir}" make install
}