57 lines
3.1 KiB
Bash
57 lines
3.1 KiB
Bash
# Template file for 'plex-media-player'
|
|
pkgname=plex-media-player
|
|
version=2.37.2.996
|
|
revision=1
|
|
_commit_rev=bea4f9ca
|
|
# See CMakeModules/WebClient.cmake
|
|
_buildid_version=132-156395a99cd699
|
|
# See https://artifacts.plex.tv/web-client-pmp/${_buildid_version}/buildid.cmake
|
|
_clientdesktop_version=3.104.1-99cd699
|
|
_clienttv_version=3.107.0-156395a
|
|
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="Enno Boland <gottox@voidlinux.org>"
|
|
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="1c31b0057337a14bc1eea99f61a44b288b5b7e707f81a629cee941789e6b901a
|
|
6b516d498097f1e84d04eefbeaf519492081ed2df9673119b66089ff9822c6f6
|
|
5815709d80a66484043b68ec2b86473b165a3a64f855fd59b3d176440f8b210b
|
|
5da2c32325943426fad7a00d19ec109452beda7f2a2d112d0238c8c8b07aba98
|
|
b0a153088d7e85b665b9acbe6ba08eeb230d36eb7ce95fd703f02dc3c57730e7
|
|
a973210e2e428774d926f2bd044d709963800824c9e421981dd968cacd0020ce"
|
|
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
|
|
|
|
case $XBPS_TARGET_MACHINE in
|
|
arm*) nocross="Qt5Webengine is not aviable for 32bit cross"
|
|
esac
|
|
|
|
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"
|
|
}
|