53 lines
3.0 KiB
Bash
53 lines
3.0 KiB
Bash
# Template file for 'plex-media-player'
|
|
pkgname=plex-media-player
|
|
version=2.25.0.940
|
|
revision=1
|
|
_commit_rev=485e2ea4
|
|
# See CMakeModules/WebClient.cmake
|
|
_buildid_version=94-f19287ee41d5c5
|
|
# See https://artifacts.plex.tv/web-client-pmp/${_buildid_version}/buildid.cmake
|
|
_clientdesktop_version=3.77.4-e41d5c5
|
|
_clienttv_version=3.82.0-f19287e
|
|
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="b82a2e611b28d69e80cd6ee90d43a09995c7afdd6524665c42a5830a66e488ed
|
|
0d6fc49232a3c1c0e8432f03eba385de83f2b431e58eef8319804bdd7b83e677
|
|
7454b41af68aaac0a626624ac7be972b4505854cae7eb9afdb78195b2b938457
|
|
b82793de345a090f4905b0846b31c4f5970b4c4281638a8cde618244f72b6da0
|
|
8c17cbc2b7479de34f11bbc8232cbc0151604ef085e0682c86cc58c5fdbe071e
|
|
c8ec733233b6abf3cd6a1d6949f5634c70d7eb0a65b8e68beeec4398833016e4"
|
|
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"
|
|
}
|