From 60613ce678fc37aa97f5e20489b9cddd13fea7d8 Mon Sep 17 00:00:00 2001 From: KawaiiAmber Date: Mon, 14 Dec 2020 18:18:20 -0700 Subject: [PATCH] New package: dotnet-sdk-5.0.101 New package: dotnet-sdk-5.0.101 --- srcpkgs/dotnet-sdk/template | 44 +++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 srcpkgs/dotnet-sdk/template diff --git a/srcpkgs/dotnet-sdk/template b/srcpkgs/dotnet-sdk/template new file mode 100644 index 00000000000..6a03fbe53e7 --- /dev/null +++ b/srcpkgs/dotnet-sdk/template @@ -0,0 +1,44 @@ +# Template file for 'dotnet-sdk' +pkgname=dotnet-sdk +version=5.0.101 +revision=1 +archs="x86_64*" +short_desc="SDK for making dotnet CORE apps" +maintainer="KawaiiAmber " +license="MIT" +homepage="https://dotnet.microsoft.com" + +case "${XBPS_TARGET_MACHINE}" in + x86_64) + _arch="x64" + _path="a0487784-534a-4912-a4dd-017382083865/be16057043a8f7b6f08c902dc48dd677" + distfiles="https://download.visualstudio.microsoft.com/download/pr/${_path}/${pkgname}-${version}-linux-${_arch}.tar.gz" + checksum=23df1eca7eb1302dfb10f4edce7edf7150e57698576f61b2dcb777c833cbd80c + ;; + x86_64-musl) + _arch="musl-x64" + _path="a84c2dee-3074-4c27-9b31-af0bc9a9ebcf/a8eb9a11b81c5b7119cf1578632ed186" + distfiles="https://download.visualstudio.microsoft.com/download/pr/${_path}/${pkgname}-${version}-linux-${_arch}.tar.gz" + checksum=1ecf97cab3d9d38af32ee0cbaaa41315a6896dc0980218ac227329f989a5ef51 + ;; +esac + +_target=opt/dotnet + +do_configure() { + echo "export DOTNET_ROOT=/${_target}" >> /etc/profile.d/dotnet.sh + echo "export PATH=$PATH:$DOTNET_ROOT" >> /etc/profile.d/dotnet.sh + # this seems to be needed to be able to work with LIBRESSL + echo "export CLR_OPENSSL_VERSION_OVERRIDE=48" >> /etc/profile.d/dotnet.sh +} + +do_install() { + vmkdir -p ${_target} + vcopy -r packs ${_target} + vcopy -r sdk ${_target} + vcopy -r shared ${_target} + vcopy -r templates ${_target} + vcopy -r host ${_target} + vcopy dotnet ${_target} + vlicense LICENSE.txt +}