From c021098f4be9c162f2434d811cdab0f9dbab4520 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 | 51 ++++++++++++++++++++++++++++++ 2 files changed, 57 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..2769e3522cf --- /dev/null +++ b/srcpkgs/dotnet-sdk/files/dotnet.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +export DOTNET_ROOT="${_target}" +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..16b8f4ecea9 --- /dev/null +++ b/srcpkgs/dotnet-sdk/template @@ -0,0 +1,51 @@ +# Template file for 'dotnet-sdk' +pkgname=dotnet-sdk +version=5.0.101 +revision=1 +archs="x86_64 aarch64 x86_64-musl" +create_wrksrc=yes +short_desc="SDK for making dotnet CORE apps" +maintainer="KawaiiAmber " +license="MIT" +homepage="https://dotnet.microsoft.com" +skiprdeps="opt/dotnet/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 + ;; + 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" + +_target=${DESTDIR}/opt/dotnet +_prof=${DESTDIR}/etc/profile.d +wrksrc=${pkgname}-${version}-linux-${_arch} + +do_configure() { + vmkdir ${_prof} + vcopy ${FILESDIR}/dotnet.sh ${_prof} +} + +do_install() { + vmkdir ${_target} + vcopy ${wrksrc}/packs ${_target} + vcopy ${wrksrc}/sdk ${_target} + vcopy ${wrksrc}/shared ${_target} + vcopy ${wrksrc}/templates ${_target} + vcopy ${wrksrc}/host ${_target} + vcopy ${wrksrc}/dotnet ${_target} + vlicense LICENSE.txt +}