void-packages/srcpkgs/plex-media-player/template

53 lines
3.0 KiB
Bash

# Template file for 'plex-media-player'
pkgname=plex-media-player
version=2.28.0.952
revision=1
_commit_rev=5408ca22
# See CMakeModules/WebClient.cmake
_buildid_version=101-fc5ff2d0043312
# See https://artifacts.plex.tv/web-client-pmp/${_buildid_version}/buildid.cmake
_clientdesktop_version=3.83.1-0043312
_clienttv_version=3.88.0-fc5ff2d
wrksrc="plex-media-player-${version}-${_commit_rev}"
build_style=cmake
configure_args="-DQTROOT="${XBPS_CROSS_BASE}/usr" -DFULL_GIT_REVISION=${_commit_rev}"
hostmakedepends="pkg-config python3"
makedepends="libcec-devel libX11-devel libXext-devel libXrandr-devel
MesaLib-devel mpv-devel qt5-devel qt5-declarative-devel qt5-location-devel
qt5-webchannel-devel qt5-webengine-devel qt5-x11extras-devel SDL2-devel zlib-devel"
depends="qt5-quickcontrols"
short_desc="Next generation Plex Desktop/Embedded Client"
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
license="LGPL-2.1-or-later"
homepage="https://github.com/plexinc/plex-media-player"
distfiles="https://github.com/plexinc/plex-media-player/archive/v${version}-${_commit_rev}.tar.gz
https://artifacts.plex.tv/web-client-pmp/${_buildid_version}/buildid.cmake>buildid-${_buildid_version}.cmake
https://artifacts.plex.tv/web-client-pmp/${_buildid_version}/web-client-desktop-${_clientdesktop_version}.tar.xz
https://artifacts.plex.tv/web-client-pmp/${_buildid_version}/web-client-desktop-${_clientdesktop_version}.tar.xz.sha1
https://artifacts.plex.tv/web-client-pmp/${_buildid_version}/web-client-tv-${_clienttv_version}.tar.xz
https://artifacts.plex.tv/web-client-pmp/${_buildid_version}/web-client-tv-${_clienttv_version}.tar.xz.sha1"
checksum="f7ca1c4144ca936ed82a814db04d46648c9e9d88cb4fd6a98988e43553e3fc49
bd7078c3c923d839ceb43e6d82d67fb0e18a1f00cb4d99579e9b185b11f17be7
53084edae5f336c3ed9b5e6aa8dd815152bd81141417095510d7352dd5464d54
47bb641b20c8691565e3326ed1f4a5ea34512e8c8b71da3a5415188a680c993a
9d8a785e3a49fa56b590ae09fd58bae79f670a83f59c8baad78112f122ad73de
1ea484f1b7856b76c444f869fb63623ce0f5bdd7b0f59d384560d7ca77843a7d"
skip_extraction="buildid-${_buildid_version}.cmake
web-client-desktop-${_clientdesktop_version}.tar.xz
web-client-desktop-${_clientdesktop_version}.tar.xz.sha1
web-client-tv-${_clienttv_version}.tar.xz
web-client-tv-${_clienttv_version}.tar.xz.sha1"
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-devel qt5-host-tools"
fi
post_extract() {
mkdir -p "${wrksrc}/build/dependencies"
cp "${XBPS_SRCDISTDIR}/plex-media-player-${version}/buildid-${_buildid_version}.cmake" "${wrksrc}/build/dependencies"
cp "${XBPS_SRCDISTDIR}/plex-media-player-${version}/web-client-desktop-${_clientdesktop_version}.tar.xz" "${wrksrc}/build/dependencies"
cp "${XBPS_SRCDISTDIR}/plex-media-player-${version}/web-client-desktop-${_clientdesktop_version}.tar.xz.sha1" "${wrksrc}/build/dependencies"
cp "${XBPS_SRCDISTDIR}/plex-media-player-${version}/web-client-tv-${_clienttv_version}.tar.xz" "${wrksrc}/build/dependencies"
cp "${XBPS_SRCDISTDIR}/plex-media-player-${version}/web-client-tv-${_clienttv_version}.tar.xz.sha1" "${wrksrc}/build/dependencies"
}