Subject: [PATCH] testing/dotnet-core: new aport

From: Simon Zeni <[email-masked]>
Date: Sun, 14 Feb 2021 22:13:31 -0500

---
 testing/dotnet-core/APKBUILD | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 testing/dotnet-core/APKBUILD

diff --git a/testing/dotnet-core/APKBUILD b/testing/dotnet-core/APKBUILD
new file mode 100644
index 0000000000..eb3e7545fe
--- /dev/null
+++ b/testing/dotnet-core/APKBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Simon Zeni <[email-masked]>
+pkgname=dotnet-core
+pkgver=3.1.405
+pkgrel=0
+pkgdesc=".NET Core SDK"
+url="https://www.microsoft.com/net/core"
+options="!check !tracedeps" # no test suite
+arch="x86_64"
+license="MIT"
+depends="
+	libcurl
+	gcc
+	krb5-libs
+	libintl
+	lttng-ust
+	libstdc++
+	zlib
+	"
+source="https://download.visualstudio.microsoft.com/download/pr/91571c5a-2e55-4187-8774-bbbab205fac6/4d53331ec2beb5c648202cae23643686/dotnet-sdk-$pkgver-linux-musl-x64.tar.gz"
+
+package() {
+	# SDK
+	install -dm 755 $pkgdir/usr/share/dotnet
+	cp -dr --no-preserve='ownership' $srcdir/sdk $srcdir/templates $pkgdir/usr/share/dotnet/
+
+	# Runtime
+	install -dm 755 $pkgdir/usr/share/dotnet/shared
+	cp -dr --no-preserve='ownership' $srcdir/shared/Microsoft.NETCore.App $pkgdir/usr/share/dotnet/shared/
+
+	# Targeting pack
+	install -dm 755 $pkgdir/usr/share/dotnet/packs
+	cp -dr --no-preserve='ownership' $srcdir/packs/Microsoft.NETCore.App.Host.linux-musl-x64 $pkgdir/usr/share/dotnet/packs/
+	cp -dr --no-preserve='ownership' $srcdir/packs/Microsoft.NETCore.App.Ref $pkgdir/usr/share/dotnet/packs/
+}
+
+sha512sums="e0fdcd08cf3cddeb4e24f57ccc1398e58b20c1c797bc2f9492124467defc6046a9690dbebc9d22e0f4b1627205519c7338de872451f37dc3b794865e1d0bd9bc  dotnet-sdk-3.1.405-linux-musl-x64.tar.gz"
--
2.30.1