From 6f1f74db4ea7f8234db5fc32083b32570a262601 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/files/dotnet.sh | 6 +++ srcpkgs/dotnet-sdk/template | 75 ++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 srcpkgs/dotnet-sdk/files/dotnet.sh create mode 100644 srcpkgs/dotnet-sdk/template diff --git a/srcpkgs/dotnet-sdk/files/dotnet.sh b/srcpkgs/dotnet-sdk/files/dotnet.sh new file mode 100644 index 00000000000..79658be5526 --- /dev/null +++ b/srcpkgs/dotnet-sdk/files/dotnet.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +export DOTNET_ROOT=/opt/dotnet +export PATH="$PATH:$DOTNET_ROOT" +# This seems to be needed to be able to work with LibreSSL +export CLR_OPENSSL_VERSION_OVERRIDE=48 diff --git a/srcpkgs/dotnet-sdk/template b/srcpkgs/dotnet-sdk/template new file mode 100644 index 00000000000..c111948466f --- /dev/null +++ b/srcpkgs/dotnet-sdk/template @@ -0,0 +1,75 @@ +# Template file for 'dotnet-sdk' +pkgname=dotnet-sdk +version=5.0.101 +revision=1 +archs="x86_64* aarch64" +create_wrksrc=yes +short_desc="SDK for making dotnet CORE apps" +maintainer="KawaiiAmber " +license="MIT" +homepage="https://dotnet.microsoft.com" + +_target=${DESTDIR}/opt/dotnet + +case "${XBPS_TARGET_MACHINE}" in + x86_64) + _arch="x64" + _path="a0487784-534a-4912-a4dd-017382083865/be16057043a8f7b6f08c902dc48dd677" + checksum=23df1eca7eb1302dfb10f4edce7edf7150e57698576f61b2dcb777c833cbd80c + ;; + x86_64-musl) + _arch="musl-x64" + _path="a84c2dee-3074-4c27-9b31-af0bc9a9ebcf/a8eb9a11b81c5b7119cf1578632ed186" + checksum=1ecf97cab3d9d38af32ee0cbaaa41315a6896dc0980218ac227329f989a5ef51 + # The binary somehow has bad link, so this seems to be needed to fix it + skiprdeps=" + ${_target}/dotnet + ${_target}/host/fxr/5.0.1/libhostfxr.so + ${_target}/packs/Microsoft.NETCore.App.Host.linux-musl-x64/5.0.1/runtimes/linux-musl-x64/native/apphost + ${_target}/packs/Microsoft.NETCore.App.Host.linux-musl-x64/5.0.1/runtimes/linux-musl-x64/native/singlefilehost + ${_target}/packs/Microsoft.NETCore.App.Host.linux-musl-x64/5.0.1/runtimes/linux-musl-x64/native/libnethost.so + ${_target}/sdk/5.0.101/AppHostTemplate/apphost + ${_target}/shared/Microsoft.NETCore.App/5.0.1/createdump + ${_target}/shared/Microsoft.NETCore.App/5.0.1/libSystem.IO.Compression.Native.so + ${_target}/shared/Microsoft.NETCore.App/5.0.1/libSystem.Native.so + ${_target}/shared/Microsoft.NETCore.App/5.0.1/libSystem.Net.Security.Native.so + ${_target}/shared/Microsoft.NETCore.App/5.0.1/libSystem.Security.Cryptography.Native.OpenSsl.so + ${_target}/shared/Microsoft.NETCore.App/5.0.1/libclrjit.so + ${_target}/shared/Microsoft.NETCore.App/5.0.1/libcoreclr.so + ${_target}/shared/Microsoft.NETCore.App/5.0.1/libcoreclrtraceptprovider.so + ${_target}/shared/Microsoft.NETCore.App/5.0.1/libdbgshim.so + ${_target}/shared/Microsoft.NETCore.App/5.0.1/libhostpolicy.so + ${_target}/shared/Microsoft.NETCore.App/5.0.1/libmscordaccore.so + ${_target}/shared/Microsoft.NETCore.App/5.0.1/libmscordbi.so + " + ;; + aarch64) + _arch="arm64" + _path="2add7523-39ec-413a-b8a7-24361cc4e599/30489ebd7ebcc723da48a64669860fd0" + checksum=86deac35700b6ab121007a1b92128f31451c2b99cc9c7584a583e516638fd4ae + ;; +esac + +distfiles="https://download.visualstudio.microsoft.com/download/pr/${_path}/${pkgname}-${version}-linux-${_arch}.tar.gz" + +_prof=${DESTDIR}/etc/profile.d +wrksrc=${pkgname}-${version}-linux-${_arch} + +do_configure() { + vmkdir ${_prof} + vcopy ${FILESDIR}/dotnet.sh ${_prof} +} + +do_install() { + vmkdir ${_target} + vcopy packs ${_target} + vcopy sdk ${_target} + vcopy shared ${_target} + vcopy templates ${_target} + vcopy host ${_target} + vcopy dotnet ${_target} +} + +post_install() { + vlicense LICENSE.txt +}