From 552e7282232777e70e8dc20a647e5a6f0ec748b6 Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Tue, 1 Oct 2024 15:13:53 -0400 Subject: dev-dotnet/dotnet-runtime-bin: upgrade --- .../dotnet-runtime-bin-8.0.7.ebuild | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 dev-dotnet/dotnet-runtime-bin/dotnet-runtime-bin-8.0.7.ebuild (limited to 'dev-dotnet/dotnet-runtime-bin/dotnet-runtime-bin-8.0.7.ebuild') diff --git a/dev-dotnet/dotnet-runtime-bin/dotnet-runtime-bin-8.0.7.ebuild b/dev-dotnet/dotnet-runtime-bin/dotnet-runtime-bin-8.0.7.ebuild new file mode 100644 index 0000000..b049c94 --- /dev/null +++ b/dev-dotnet/dotnet-runtime-bin/dotnet-runtime-bin-8.0.7.ebuild @@ -0,0 +1,54 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION=".NET is a free, cross-platform, open-source developer platform" +HOMEPAGE="https://dotnet.microsoft.com/" +LICENSE="MIT" + +gen_src_uri() { + echo "$1? ( + elibc_glibc? ( https://dotnetcli.azureedge.net/dotnet/Runtime/${PV}/dotnet-runtime-${PV}-linux-${2:-$1}.tar.gz ) + elibc_musl? ( https://dotnetcli.azureedge.net/dotnet/Runtime/${PV}/dotnet-runtime-${PV}-linux-musl-${2:-$1}.tar.gz ) + )" +} + +SRC_URI=" + $(gen_src_uri amd64 x64) + $(gen_src_uri arm) + $(gen_src_uri arm64) +" + +SLOT="$(ver_cut 1-2)" +KEYWORDS="-* ~amd64 ~arm ~arm64" +QA_PREBUILT="*" +RESTRICT+=" splitdebug" +RDEPEND=" + sys-libs/zlib:0/1 + !dev-dotnet/dotnet-sdk-bin:${SLOT} +" +IDEPEND=" + app-eselect/eselect-dotnet +" + +S=${WORKDIR} + +src_install() { + local dest="opt/${PN}-${SLOT}" + dodir "${dest%/*}" + + mv "${S}" "${ED}/${dest}" || die + mkdir "${S}" || die + fperms 0755 "/${dest}" + + dosym "../../${dest}/dotnet" "/usr/bin/dotnet-bin-${SLOT}" +} + +pkg_postinst() { + eselect dotnet update ifunset +} + +pkg_postrm() { + eselect dotnet update ifunset +} -- cgit v1.2.3-70-g09d2