www-servers/jellyfin-bin: re-add conditional SRC_URI with a fix

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Maciej Barć <xgqt@protonmail.com>
This commit is contained in:
Maciej Barć 2021-01-03 13:09:06 +01:00
parent ea924873b8
commit 26fcba1f4c
No known key found for this signature in database
GPG Key ID: 031C9FE65BED714A
2 changed files with 22 additions and 18 deletions

View File

@ -9,15 +9,13 @@ MY_PN="${PN/-bin}"
if [[ "${PV}" == *_rc* ]]; then if [[ "${PV}" == *_rc* ]]; then
# _rc -> ~rc # _rc -> ~rc
MY_PV="${PV/_rc/~rc}" MY_PV="${PV/_rc/~rc}"
ARM64_DEB="${MY_PN}-server_${MY_PV}_arm64.deb" SRV_SRC="${MY_PN}-server_${MY_PV}"
AMD64_DEB="${MY_PN}-server_${MY_PV}_amd64.deb" WEB_SRC="${MY_PN}-web_${MY_PV}"
WEB_DEB="${MY_PN}-web_${MY_PV}_all.deb"
else else
# Add "-1" # Add "-1"
MY_PV="${PV}" MY_PV="${PV}"
ARM64_DEB="${MY_PN}-server_${MY_PV}-1_arm64.deb" SRV_SRC="${MY_PN}-server_${MY_PV}-1"
AMD64_DEB="${MY_PN}-server_${MY_PV}-1_amd64.deb" WEB_SRC="${MY_PN}-web_${MY_PV}-1"
WEB_DEB="${MY_PN}-web_${MY_PV}-1_all.deb"
fi fi
inherit unpacker systemd wrapper inherit unpacker systemd wrapper
@ -25,9 +23,13 @@ inherit unpacker systemd wrapper
DESCRIPTION="The Free Software Media System" DESCRIPTION="The Free Software Media System"
HOMEPAGE="https://jellyfin.org" HOMEPAGE="https://jellyfin.org"
SRC_URI=" SRC_URI="
${BASE_URI}/server/${MY_PV}/${ARM64_DEB} -> ${P}-server-arm64.deb amd64? (
${BASE_URI}/server/${MY_PV}/${AMD64_DEB} -> ${P}-server-amd64.deb ${BASE_URI}/server/${MY_PV}/${SRV_SRC}_amd64.deb -> ${P}-server-amd64.deb
${BASE_URI}/web/${MY_PV}/${WEB_DEB} -> ${P}-web.deb )
arm64? (
${BASE_URI}/server/${MY_PV}/${SRV_SRC}_arm64.deb -> ${P}-server-arm64.deb
)
${BASE_URI}/web/${MY_PV}/${WEB_SRC}_all.deb -> ${P}-web.deb
" "
RESTRICT="mirror" RESTRICT="mirror"

View File

@ -9,15 +9,13 @@ MY_PN="${PN/-bin}"
if [[ "${PV}" == *_rc* ]]; then if [[ "${PV}" == *_rc* ]]; then
# _rc -> ~rc # _rc -> ~rc
MY_PV="${PV/_rc/~rc}" MY_PV="${PV/_rc/~rc}"
ARM64_DEB="${MY_PN}-server_${MY_PV}_arm64.deb" SRV_SRC="${MY_PN}-server_${MY_PV}"
AMD64_DEB="${MY_PN}-server_${MY_PV}_amd64.deb" WEB_SRC="${MY_PN}-web_${MY_PV}"
WEB_DEB="${MY_PN}-web_${MY_PV}_all.deb"
else else
# Add "-1" # Add "-1"
MY_PV="${PV}" MY_PV="${PV}"
ARM64_DEB="${MY_PN}-server_${MY_PV}-1_arm64.deb" SRV_SRC="${MY_PN}-server_${MY_PV}-1"
AMD64_DEB="${MY_PN}-server_${MY_PV}-1_amd64.deb" WEB_SRC="${MY_PN}-web_${MY_PV}-1"
WEB_DEB="${MY_PN}-web_${MY_PV}-1_all.deb"
fi fi
inherit unpacker systemd wrapper inherit unpacker systemd wrapper
@ -25,9 +23,13 @@ inherit unpacker systemd wrapper
DESCRIPTION="The Free Software Media System" DESCRIPTION="The Free Software Media System"
HOMEPAGE="https://jellyfin.org" HOMEPAGE="https://jellyfin.org"
SRC_URI=" SRC_URI="
${BASE_URI}/server/${MY_PV}/${ARM64_DEB} -> ${P}-server-arm64.deb amd64? (
${BASE_URI}/server/${MY_PV}/${AMD64_DEB} -> ${P}-server-amd64.deb ${BASE_URI}/server/${MY_PV}/${SRV_SRC}_amd64.deb -> ${P}-server-amd64.deb
${BASE_URI}/web/${MY_PV}/${WEB_DEB} -> ${P}-web.deb )
arm64? (
${BASE_URI}/server/${MY_PV}/${SRV_SRC}_arm64.deb -> ${P}-server-arm64.deb
)
${BASE_URI}/web/${MY_PV}/${WEB_SRC}_all.deb -> ${P}-web.deb
" "
RESTRICT="mirror" RESTRICT="mirror"