From 1e1eb00626c72674513d580a73e8c3f0667a9cd8 Mon Sep 17 00:00:00 2001 From: KawaiiAmber Date: Mon, 14 Dec 2020 18:18:20 -0700 Subject: [PATCH] New package: dotnet-sdk-bin-5.0.202 --- common/shlibs | 1 + srcpkgs/dotnet-sdk/files/dotnet.sh | 4 +++ srcpkgs/dotnet-sdk/template | 46 ++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 srcpkgs/dotnet-sdk/files/dotnet.sh create mode 100644 srcpkgs/dotnet-sdk/template diff --git a/common/shlibs b/common/shlibs index 995c9750a41f..82d98c908cb3 100644 --- a/common/shlibs +++ b/common/shlibs @@ -409,6 +409,7 @@ libcdio.so.19 libcdio-2.1.0_1 libmpcdec.so.5 libmpcdec-1.2.6_1 libproxy.so.1 libproxy-0.4.6_1 libmoar.so MoarVM-2015.11_1 +libc.musl-x86_64.so.1 dotnet-sdk-bin-5.0.101_1 libFLAC.so.8 libflac-1.2.1_1 libFLAC++.so.6 libflac-1.2.1_1 libField3D.so.1.7 Field3D-1.7.3_1 diff --git a/srcpkgs/dotnet-sdk/files/dotnet.sh b/srcpkgs/dotnet-sdk/files/dotnet.sh new file mode 100644 index 000000000000..05b0324de349 --- /dev/null +++ b/srcpkgs/dotnet-sdk/files/dotnet.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +export DOTNET_ROOT=/usr/libexec/dotnet +export PATH="$PATH:$DOTNET_ROOT" diff --git a/srcpkgs/dotnet-sdk/template b/srcpkgs/dotnet-sdk/template new file mode 100644 index 000000000000..9f80d21fadc2 --- /dev/null +++ b/srcpkgs/dotnet-sdk/template @@ -0,0 +1,46 @@ +# Template file for 'dotnet-sdk' +pkgname=dotnet-sdk +version=5.0.202 +revision=1 +hostmakedepends="git tar" +wrksrc="source-build-${version}-SDK" +short_desc="SDK for making dotnet CORE apps" +maintainer="KawaiiAmber " +license="MIT" +homepage="https://dotnet.microsoft.com" +distfiles="https://github.com/dotnet/source-build/archive/refs/tags/v${version}-SDK.tar.gz" +checksum=aea8e4f3323aa95316969958585ccc7030f9be7c79d38188a9137ef789ada7cd + +_prof=${DESTDIR}/etc/profile.d +_target=${DESTDIR}/usr/libexec/dotnet + +case "${XBPS_TARGET_MACHINE}" in + "x86_64*") _ARCHITECTURE="x64" ;; + "aarch64*") _ARCHITECTURE="arm64" ;; +esac +_RUNTIME_ID="void-${_ARCHITECTURE}" + +do_configure() { + vmkdir ${_prof} + vcopy ${FILESDIR}/dotnet.sh ${_prof} +} + +do_build() { + DOTNET_CLI_TELEMETRY_OPTOUT="true" sh ./build.sh -b +} + +post_build() { + tar -zxvf ./artifacts/"${_ARCHITECTURE}"/Release/dotnet-sdk-"${version}"-"${RUNTIME_ID}".tar.gz +} + +do_install() { + vmkdir ${_target} + for file in artifacts/"${_ARCHITECTURE}"/Release/dotnet-sdk-"${version}"-"${RUNTIME_ID}"/* + do + vcopy ${file} ${_target} + done +} + +post_install() { + vlicense LICENSE.txt +}