53 lines
3.0 KiB
Bash
53 lines
3.0 KiB
Bash
# Template file for 'plex-media-player'
|
|
pkgname=plex-media-player
|
|
version=2.29.1.961
|
|
revision=1
|
|
_commit_rev=bb236059
|
|
# See CMakeModules/WebClient.cmake
|
|
_buildid_version=107-99dd8130043312
|
|
# See https://artifacts.plex.tv/web-client-pmp/${_buildid_version}/buildid.cmake
|
|
_clientdesktop_version=3.83.1-0043312
|
|
_clienttv_version=3.90.1-99dd813
|
|
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="a41a0ebdd769baf60a4c44ea23866fa8aaf0c09122aa67bf2f70ebfca90f8a68
|
|
2ce3bf87c10f9fc3596b02a7331139d65cd49410e556213cb9535b0d382c95f9
|
|
b4ca0608bd0f859cfc6dd3d099645bf702d083d70ebe87498c0d92b58a6b1f1d
|
|
a9fbec5e0f097a0615ec47c15261eabf51a0c8c53497a88f4e86abef82710ac8
|
|
680694a50b021861fdc8964a5e82506e6b9431111091581b5a2dfdc381695399
|
|
25905524289834a67456048983ddfba47b5b591967cdee9987e92972246e75e0"
|
|
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"
|
|
}
|