jellyfin-media-player/PKGBUILD

30 lines
1.1 KiB
Bash

# Maintainer: Andrew Rabert <ar@nullsum.net>
pkgname=jellyfin-media-player
pkgver=1.3.0
pkgrel=2
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-1.7.1.tar.gz::https://github.com/iwalton3/jellyfin-web-jmp/releases/download/jwc-1.7.1/dist.zip')
sha256sums=('99033720549c8d3b555a550d60059705e89833a485e8bf302f5fa802c64d96f9'
'53e3288df75d87210496ae179ba88f47b22d46f5f4ec0cc02138658acef8e781')
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
}