www-servers/jellyfin-bin: fix arch issues

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 12:48:05 +01:00
parent 210b54741e
commit ea924873b8
No known key found for this signature in database
GPG Key ID: 031C9FE65BED714A
3 changed files with 34 additions and 18 deletions

View File

@ -1,4 +1,6 @@
DIST jellyfin-bin-10.6.4-server-amd64.deb 36142684 BLAKE2B 566dbe54a639a3f7066115e8e99dfbe4adcc91b7467ce5d2dd70536a90bf9244f217e1ce36ed786ea1625af22a3faccb6805030288acfa4979875fccb536cd79 SHA512 0600b2f3434db5397f95ed560e9d28a3a69515c7039ccda1066c86ea5a3f6e8dbbc3ecc67584d58193535d009c6c8f66da06515b78cd50ae0c0061dd265f188d
DIST jellyfin-bin-10.6.4-server-arm64.deb 33981564 BLAKE2B 651667428e92718d669f8e1a4011beb51dd98bb7006a5b88a253139a092c7c5f4829ce18b1b921c8c678ba5f135f06b6a8520c0c032031a150e701b4602ca92e SHA512 cc3889a8ed6928f27fd09013db781007ffe73a04120101ce0d21d223ebae4f61cb2524723b9c54a04dbf8e421f60c0f89d43aaf4b97eec042d7f4e0ca76f3db4
DIST jellyfin-bin-10.6.4-web.deb 30548488 BLAKE2B 59061f90afcf1215a6ff65868dc5faac83b28914010e324f30cd13b74433857f2ae99736ea59970273eda5acf29ebf2dacee8135c45f61786ae97e36de176703 SHA512 834368480c942f32171967b0895972f75aa3d77c2a2fb131f67b81fd8dee438b8a00c48dd0901aa3e12d0fa369176e06f9a8662046086f43b94ff6c7ef41a591
DIST jellyfin-bin-10.7.0_rc2-server-amd64.deb 37858932 BLAKE2B ed77e3f3b31a8096431b0631891470a34bf6f9d2366321cb789e3f1ee8d6ba4ffe8f2c98ee57aff6f5e64a0aab53be87ddf07761a6054cadf40a4ec422f7f635 SHA512 ac0f91588f33e058648c7c40f7f3b1bdc2e2d377a908b0677488bbe1849749b574e494f35abfe7c7a0cf0fa2b2de7fe3aa8eb805a746433e384b5414dcbe0509
DIST jellyfin-bin-10.7.0_rc2-server-arm64.deb 33819332 BLAKE2B af2290272142684958705529111a16dd052e0c407ddb17220d7caf8ecceac593b3a8478d35a00e11a9d18acc39a94ad7689c750cc5b82ec0d3fb1513c469bf6d SHA512 e4578386cec1d88e2300e44fb59fb90ed9bbbcdbdd4218466118446d40b0c8f94ad886df0cb1b5c63a00949ea89315dd968b4b9f494428d1f0887643e48ed64b
DIST jellyfin-bin-10.7.0_rc2-web.deb 35040832 BLAKE2B a0027e83aa19135df7588dae7538635c56cc75be142f4d58c7b908633284b3294cbacc9990f21d3f448b007a4def22f610917a57bc0a4721c65e26c8753c7717 SHA512 2e5f8a27cd1aaa138ce94c6f4f6a1415dbbc813c6005c57791fddfd0cc5bde8c21cbc13b8c6d238c5ebe0bd1186b3b5cbd4463b876de794ab6d78ca0e452125e

View File

@ -9,12 +9,14 @@ MY_PN="${PN/-bin}"
if [[ "${PV}" == *_rc* ]]; then
# _rc -> ~rc
MY_PV="${PV/_rc/~rc}"
SERVER_DEB="${MY_PN}-server_${MY_PV}_${ARCH}.deb"
ARM64_DEB="${MY_PN}-server_${MY_PV}_arm64.deb"
AMD64_DEB="${MY_PN}-server_${MY_PV}_amd64.deb"
WEB_DEB="${MY_PN}-web_${MY_PV}_all.deb"
else
# Add "-1"
MY_PV="${PV}"
SERVER_DEB="${MY_PN}-server_${MY_PV}-1_${ARCH}.deb"
ARM64_DEB="${MY_PN}-server_${MY_PV}-1_arm64.deb"
AMD64_DEB="${MY_PN}-server_${MY_PV}-1_amd64.deb"
WEB_DEB="${MY_PN}-web_${MY_PV}-1_all.deb"
fi
@ -23,12 +25,8 @@ inherit unpacker systemd wrapper
DESCRIPTION="The Free Software Media System"
HOMEPAGE="https://jellyfin.org"
SRC_URI="
amd64? (
${BASE_URI}/server/${MY_PV}/${SERVER_DEB} -> ${P}-server-${ARCH}.deb
)
arm64? (
${BASE_URI}/server/${MY_PV}/${SERVER_DEB} -> ${P}-server-${ARCH}.deb
)
${BASE_URI}/server/${MY_PV}/${ARM64_DEB} -> ${P}-server-arm64.deb
${BASE_URI}/server/${MY_PV}/${AMD64_DEB} -> ${P}-server-amd64.deb
${BASE_URI}/web/${MY_PV}/${WEB_DEB} -> ${P}-web.deb
"
@ -61,7 +59,16 @@ PATCHES=(
)
src_unpack() {
unpack_deb "${P}-server-${ARCH}.deb"
# https://gitlab.com/src_prepare/src_prepare-overlay/-/merge_requests/145
if use amd64
then
unpack_deb "${P}-server-amd64.deb"
elif use arm64
then
unpack_deb "${P}-server-arm64.deb"
else
die "Unsupported architecture"
fi
unpack_deb "${P}-web.deb"
}

View File

@ -9,12 +9,14 @@ MY_PN="${PN/-bin}"
if [[ "${PV}" == *_rc* ]]; then
# _rc -> ~rc
MY_PV="${PV/_rc/~rc}"
SERVER_DEB="${MY_PN}-server_${MY_PV}_${ARCH}.deb"
ARM64_DEB="${MY_PN}-server_${MY_PV}_arm64.deb"
AMD64_DEB="${MY_PN}-server_${MY_PV}_amd64.deb"
WEB_DEB="${MY_PN}-web_${MY_PV}_all.deb"
else
# Add "-1"
MY_PV="${PV}"
SERVER_DEB="${MY_PN}-server_${MY_PV}-1_${ARCH}.deb"
ARM64_DEB="${MY_PN}-server_${MY_PV}-1_arm64.deb"
AMD64_DEB="${MY_PN}-server_${MY_PV}-1_amd64.deb"
WEB_DEB="${MY_PN}-web_${MY_PV}-1_all.deb"
fi
@ -23,12 +25,8 @@ inherit unpacker systemd wrapper
DESCRIPTION="The Free Software Media System"
HOMEPAGE="https://jellyfin.org"
SRC_URI="
amd64? (
${BASE_URI}/server/${MY_PV}/${SERVER_DEB} -> ${P}-server-${ARCH}.deb
)
arm64? (
${BASE_URI}/server/${MY_PV}/${SERVER_DEB} -> ${P}-server-${ARCH}.deb
)
${BASE_URI}/server/${MY_PV}/${ARM64_DEB} -> ${P}-server-arm64.deb
${BASE_URI}/server/${MY_PV}/${AMD64_DEB} -> ${P}-server-amd64.deb
${BASE_URI}/web/${MY_PV}/${WEB_DEB} -> ${P}-web.deb
"
@ -61,7 +59,16 @@ PATCHES=(
)
src_unpack() {
unpack_deb "${P}-server-${ARCH}.deb"
# https://gitlab.com/src_prepare/src_prepare-overlay/-/merge_requests/145
if use amd64
then
unpack_deb "${P}-server-amd64.deb"
elif use arm64
then
unpack_deb "${P}-server-arm64.deb"
else
die "Unsupported architecture"
fi
unpack_deb "${P}-web.deb"
}