From 6e5ae5699011ff77880322b6e9535fcb275c1e40 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 | 53 +++++++++++++++++++++++++++++++++++++ 1 file changed, 53 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..af68bd29b9d --- /dev/null +++ b/srcpkgs/dotnet-sdk/template @@ -0,0 +1,53 @@ +# Template file for 'dotnet-sdk' +pkgname=dotnet-sdk +version=5.0.101 +revision=1 +create_wrksrc=yes +archs="x86_64 aarch64 x86_64-musl" +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 + ;; + aarch64) + _arch="arm64" + _path="2add7523-39ec-413a-b8a7-24361cc4e599/30489ebd7ebcc723da48a64669860fd0" + distfiles="https://download.visualstudio.microsoft.com/download/pr/${_path}/${pkgname}-${version}-linux-${_arch}.tar.gz" + checksum=86deac35700b6ab121007a1b92128f31451c2b99cc9c7584a583e516638fd4ae + ;; +esac + +_target=${DESTDIR}/opt/dotnet +_prof=${DESTDIR}/profile.d/dotnet.sh +wrksrc=${pkgname}-${version}-linux-${_arch} + +do_configure() { + echo "export DOTNET_ROOT=${_target}" >> ${_prof} + echo "export PATH=$PATH:$DOTNET_ROOT" >> ${_prof} + # this seems to be needed to be able to work with LIBRESSL + echo "export CLR_OPENSSL_VERSION_OVERRIDE=48" >> ${_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 +}