52 lines
3 KiB
Bash
52 lines
3 KiB
Bash
# Template file for 'plex-media-player'
|
|
pkgname=plex-media-player
|
|
version=2.30.1.966
|
|
revision=1
|
|
_commit_rev=e4e7b964
|
|
# See CMakeModules/WebClient.cmake
|
|
_buildid_version=113-862bda5ecd072f
|
|
# See https://artifacts.plex.tv/web-client-pmp/${_buildid_version}/buildid.cmake
|
|
_clientdesktop_version=3.83.2-ecd072f
|
|
_clienttv_version=3.94.0-862bda5
|
|
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 <oss@cogitri.dev>"
|
|
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="a95fd93aa16dc0de992ceb12282293d537a2f736570c858ffdd454ef6cf2346e
|
|
02aa7773e955b57226d3485080a10c7bf1fce86997d3c452d9391c30c3185ae7
|
|
3d9da749787d752c86dd09a2e1a2362c20a48bbe94b4c1f02a9f659f69409fc9
|
|
5e31732aafee09a6a5cc60c4844b11c002f1ca0101ec61d9d1d07b51b2588876
|
|
a72092b35ba3789d78db716dd410c03fba0580ab6174a77ad5c4e65fad81c021
|
|
0af40ca520d6e0c9e457dc44cdecf82726fa0fcd83f34b3b20a2864c9af3f4af"
|
|
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"
|
|
}
|