[arch-commits] Commit in dotnet-core/repos/community-x86_64 (8 files)

Maxime Gauduin alucryd at archlinux.org
Thu Jul 30 17:13:13 UTC 2020


    Date: Thursday, July 30, 2020 @ 17:13:13
  Author: alucryd
Revision: 665925

archrelease: copy trunk to community-x86_64

Added:
  dotnet-core/repos/community-x86_64/9999-Add-arch-RIDs.patch
    (from rev 665924, dotnet-core/trunk/9999-Add-arch-RIDs.patch)
  dotnet-core/repos/community-x86_64/9999-Fix-build-clang-10.patch
    (from rev 665924, dotnet-core/trunk/9999-Fix-build-clang-10.patch)
  dotnet-core/repos/community-x86_64/9999-Fix-versionless-RID-computation.patch
    (from rev 665924, dotnet-core/trunk/9999-Fix-versionless-RID-computation.patch)
  dotnet-core/repos/community-x86_64/PKGBUILD
    (from rev 665924, dotnet-core/trunk/PKGBUILD)
Deleted:
  dotnet-core/repos/community-x86_64/9999-Add-arch-RIDs.patch
  dotnet-core/repos/community-x86_64/9999-Fix-build-clang-10.patch
  dotnet-core/repos/community-x86_64/9999-Fix-versionless-RID-computation.patch
  dotnet-core/repos/community-x86_64/PKGBUILD

--------------------------------------------+
 9999-Add-arch-RIDs.patch                   |  182 ++++++++--------
 9999-Fix-build-clang-10.patch              |   26 +-
 9999-Fix-versionless-RID-computation.patch |   26 +-
 PKGBUILD                                   |  306 +++++++++++++++------------
 4 files changed, 292 insertions(+), 248 deletions(-)

Deleted: 9999-Add-arch-RIDs.patch
===================================================================
--- 9999-Add-arch-RIDs.patch	2020-07-30 17:13:03 UTC (rev 665924)
+++ 9999-Add-arch-RIDs.patch	2020-07-30 17:13:13 UTC (rev 665925)
@@ -1,91 +0,0 @@
-From c70ef244c862e8e13ff6552ee829e968186e0f45 Mon Sep 17 00:00:00 2001
-From: Omair Majid <omajid at redhat.com>
-Date: Fri, 8 Nov 2019 21:01:11 -0500
-Subject: [PATCH] Add runtime id for Arch Linux
-
-Like gentoo, Arch Linux is a rolling release and doesn't have explicit
-version numbers.
-
-    $ cat /etc/os-release
-    NAME="Arch Linux"
-    PRETTY_NAME="Arch Linux"
-    ID=arch
-    BUILD_ID=rolling
-    ANSI_COLOR="0;36"
-    HOME_URL="https://www.archlinux.org/"
-    DOCUMENTATION_URL="https://wiki.archlinux.org/"
-    SUPPORT_URL="https://bbs.archlinux.org/"
-    BUG_REPORT_URL="https://bugs.archlinux.org/"
-    LOGO=archlinux
----
- .../runtime.compatibility.json                  | 17 +++++++++++++++++
- .../Microsoft.NETCore.Platforms/runtime.json    | 11 +++++++++++
- .../runtimeGroups.props                         |  5 +++++
- 3 files changed, 33 insertions(+)
-
-diff --git a/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json b/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json
-index 2a196ecc9fc7..d273634527ef 100644
---- a/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json
-+++ b/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json
-@@ -270,6 +270,23 @@
-     "any",
-     "base"
-   ],
-+  "arch": [
-+    "arch",
-+    "linux",
-+    "unix",
-+    "any",
-+    "base"
-+  ],
-+  "arch-x64": [
-+    "arch-x64",
-+    "arch",
-+    "linux-x64",
-+    "linux",
-+    "unix-x64",
-+    "unix",
-+    "any",
-+    "base"
-+  ],
-   "base": [
-     "base"
-   ],
-diff --git a/pkg/Microsoft.NETCore.Platforms/runtime.json b/pkg/Microsoft.NETCore.Platforms/runtime.json
-index e70f2da7e668..5b2f70f44b9e 100644
---- a/pkg/Microsoft.NETCore.Platforms/runtime.json
-+++ b/pkg/Microsoft.NETCore.Platforms/runtime.json
-@@ -121,6 +121,17 @@
-         "any"
-       ]
-     },
-+    "arch": {
-+      "#import": [
-+        "linux"
-+      ]
-+    },
-+    "arch-x64": {
-+      "#import": [
-+        "arch",
-+        "linux-x64"
-+      ]
-+    },
-     "base": {
-       "#import": []
-     },
-diff --git a/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props b/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props
-index 6c95b67819be..aa31cac61f34 100644
---- a/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props
-+++ b/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props
-@@ -25,6 +25,11 @@
-       <Versions>21</Versions>
-     </RuntimeGroup>
-
-+    <RuntimeGroup Include="arch">
-+      <Parent>linux</Parent>
-+      <Architectures>x64</Architectures>
-+    </RuntimeGroup>
-+
-     <RuntimeGroup Include="centos">
-       <Parent>rhel</Parent>
-       <Architectures>x64</Architectures>

Copied: dotnet-core/repos/community-x86_64/9999-Add-arch-RIDs.patch (from rev 665924, dotnet-core/trunk/9999-Add-arch-RIDs.patch)
===================================================================
--- 9999-Add-arch-RIDs.patch	                        (rev 0)
+++ 9999-Add-arch-RIDs.patch	2020-07-30 17:13:13 UTC (rev 665925)
@@ -0,0 +1,91 @@
+From c70ef244c862e8e13ff6552ee829e968186e0f45 Mon Sep 17 00:00:00 2001
+From: Omair Majid <omajid at redhat.com>
+Date: Fri, 8 Nov 2019 21:01:11 -0500
+Subject: [PATCH] Add runtime id for Arch Linux
+
+Like gentoo, Arch Linux is a rolling release and doesn't have explicit
+version numbers.
+
+    $ cat /etc/os-release
+    NAME="Arch Linux"
+    PRETTY_NAME="Arch Linux"
+    ID=arch
+    BUILD_ID=rolling
+    ANSI_COLOR="0;36"
+    HOME_URL="https://www.archlinux.org/"
+    DOCUMENTATION_URL="https://wiki.archlinux.org/"
+    SUPPORT_URL="https://bbs.archlinux.org/"
+    BUG_REPORT_URL="https://bugs.archlinux.org/"
+    LOGO=archlinux
+---
+ .../runtime.compatibility.json                  | 17 +++++++++++++++++
+ .../Microsoft.NETCore.Platforms/runtime.json    | 11 +++++++++++
+ .../runtimeGroups.props                         |  5 +++++
+ 3 files changed, 33 insertions(+)
+
+diff --git a/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json b/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json
+index 2a196ecc9fc7..d273634527ef 100644
+--- a/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json
++++ b/pkg/Microsoft.NETCore.Platforms/runtime.compatibility.json
+@@ -270,6 +270,23 @@
+     "any",
+     "base"
+   ],
++  "arch": [
++    "arch",
++    "linux",
++    "unix",
++    "any",
++    "base"
++  ],
++  "arch-x64": [
++    "arch-x64",
++    "arch",
++    "linux-x64",
++    "linux",
++    "unix-x64",
++    "unix",
++    "any",
++    "base"
++  ],
+   "base": [
+     "base"
+   ],
+diff --git a/pkg/Microsoft.NETCore.Platforms/runtime.json b/pkg/Microsoft.NETCore.Platforms/runtime.json
+index e70f2da7e668..5b2f70f44b9e 100644
+--- a/pkg/Microsoft.NETCore.Platforms/runtime.json
++++ b/pkg/Microsoft.NETCore.Platforms/runtime.json
+@@ -121,6 +121,17 @@
+         "any"
+       ]
+     },
++    "arch": {
++      "#import": [
++        "linux"
++      ]
++    },
++    "arch-x64": {
++      "#import": [
++        "arch",
++        "linux-x64"
++      ]
++    },
+     "base": {
+       "#import": []
+     },
+diff --git a/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props b/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props
+index 6c95b67819be..aa31cac61f34 100644
+--- a/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props
++++ b/pkg/Microsoft.NETCore.Platforms/runtimeGroups.props
+@@ -25,6 +25,11 @@
+       <Versions>21</Versions>
+     </RuntimeGroup>
+
++    <RuntimeGroup Include="arch">
++      <Parent>linux</Parent>
++      <Architectures>x64</Architectures>
++    </RuntimeGroup>
++
+     <RuntimeGroup Include="centos">
+       <Parent>rhel</Parent>
+       <Architectures>x64</Architectures>

Deleted: 9999-Fix-build-clang-10.patch
===================================================================
--- 9999-Fix-build-clang-10.patch	2020-07-30 17:13:03 UTC (rev 665924)
+++ 9999-Fix-build-clang-10.patch	2020-07-30 17:13:13 UTC (rev 665925)
@@ -1,13 +0,0 @@
-diff -rupN corefx.620cea9ccf0359993e803c900059932966399584.orig/src/Native/Unix/CMakeLists.txt corefx.620cea9ccf0359993e803c900059932966399584/src/Native/Unix/CMakeLists.txt
---- corefx.620cea9ccf0359993e803c900059932966399584.orig/src/Native/Unix/CMakeLists.txt	2020-06-23 18:07:14.111464986 +0200
-+++ corefx.620cea9ccf0359993e803c900059932966399584/src/Native/Unix/CMakeLists.txt	2020-06-23 18:08:56.147153789 +0200
-@@ -18,6 +18,8 @@ add_compile_options(-Wno-empty-translati
- add_compile_options(-Wno-cast-align)
- add_compile_options(-Wno-typedef-redefinition)
- add_compile_options(-Wno-c11-extensions)
-+add_compile_options(-Wno-sign-conversion)
-+add_compile_options(-Wno-unused-result)
- add_compile_options(-fPIC)
- add_compile_options(-I${CMAKE_CURRENT_SOURCE_DIR}/Common)
- add_compile_options(-I${CMAKE_CURRENT_BINARY_DIR}/Common)
-

Copied: dotnet-core/repos/community-x86_64/9999-Fix-build-clang-10.patch (from rev 665924, dotnet-core/trunk/9999-Fix-build-clang-10.patch)
===================================================================
--- 9999-Fix-build-clang-10.patch	                        (rev 0)
+++ 9999-Fix-build-clang-10.patch	2020-07-30 17:13:13 UTC (rev 665925)
@@ -0,0 +1,13 @@
+diff -rupN corefx.620cea9ccf0359993e803c900059932966399584.orig/src/Native/Unix/CMakeLists.txt corefx.620cea9ccf0359993e803c900059932966399584/src/Native/Unix/CMakeLists.txt
+--- corefx.620cea9ccf0359993e803c900059932966399584.orig/src/Native/Unix/CMakeLists.txt	2020-06-23 18:07:14.111464986 +0200
++++ corefx.620cea9ccf0359993e803c900059932966399584/src/Native/Unix/CMakeLists.txt	2020-06-23 18:08:56.147153789 +0200
+@@ -18,6 +18,8 @@ add_compile_options(-Wno-empty-translati
+ add_compile_options(-Wno-cast-align)
+ add_compile_options(-Wno-typedef-redefinition)
+ add_compile_options(-Wno-c11-extensions)
++add_compile_options(-Wno-sign-conversion)
++add_compile_options(-Wno-unused-result)
+ add_compile_options(-fPIC)
+ add_compile_options(-I${CMAKE_CURRENT_SOURCE_DIR}/Common)
+ add_compile_options(-I${CMAKE_CURRENT_BINARY_DIR}/Common)
+

Deleted: 9999-Fix-versionless-RID-computation.patch
===================================================================
--- 9999-Fix-versionless-RID-computation.patch	2020-07-30 17:13:03 UTC (rev 665924)
+++ 9999-Fix-versionless-RID-computation.patch	2020-07-30 17:13:13 UTC (rev 665925)
@@ -1,13 +0,0 @@
-diff --git a/src/corehost/build.sh b/src/corehost/build.sh
-index fb503e74..9a6ec590 100755
---- a/src/corehost/build.sh
-+++ b/src/corehost/build.sh
-@@ -25,7 +25,7 @@ init_rid_plat()
-                 # remove the last version number
-                 VERSION_ID=${VERSION_ID%.*}
-             fi
--            __rid_plat="$ID.$VERSION_ID"
-+            __rid_plat="$ID${VERSION_ID:+.$VERSION_ID}"
-             if [[ "$ID" == "alpine" ]]; then
-                 __rid_plat="linux-musl"
-             fi

Copied: dotnet-core/repos/community-x86_64/9999-Fix-versionless-RID-computation.patch (from rev 665924, dotnet-core/trunk/9999-Fix-versionless-RID-computation.patch)
===================================================================
--- 9999-Fix-versionless-RID-computation.patch	                        (rev 0)
+++ 9999-Fix-versionless-RID-computation.patch	2020-07-30 17:13:13 UTC (rev 665925)
@@ -0,0 +1,13 @@
+diff --git a/src/corehost/build.sh b/src/corehost/build.sh
+index fb503e74..9a6ec590 100755
+--- a/src/corehost/build.sh
++++ b/src/corehost/build.sh
+@@ -25,7 +25,7 @@ init_rid_plat()
+                 # remove the last version number
+                 VERSION_ID=${VERSION_ID%.*}
+             fi
+-            __rid_plat="$ID.$VERSION_ID"
++            __rid_plat="$ID${VERSION_ID:+.$VERSION_ID}"
+             if [[ "$ID" == "alpine" ]]; then
+                 __rid_plat="linux-musl"
+             fi

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-30 17:13:03 UTC (rev 665924)
+++ PKGBUILD	2020-07-30 17:13:13 UTC (rev 665925)
@@ -1,131 +0,0 @@
-# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
-# Contributor: Max Liebkies <mail at maxliebkies.de>
-# Contributor: Krzysztof Bogacki <krzysztof.bogacki at leancode.pl>
-
-pkgbase=dotnet-core
-pkgname=(
- dotnet-host
- dotnet-runtime
- dotnet-sdk
- aspnet-runtime
-)
-pkgver=3.1.6.sdk106
-_runtimever=3.1.6
-_sdkver=3.1.106
-pkgrel=1
-arch=(x86_64)
-url=https://www.microsoft.com/net/core
-license=(MIT)
-makedepends=(
-  bash
-  clang
-  cmake
-  curl
-  git
-  icu
-  inetutils
-  krb5
-  libgit2
-  libunwind
-  lldb
-  llvm
-  lttng-ust
-  openssl
-  zlib
-)
-options=(staticlibs)
-_tag=bebae309898f714f8d3e79f1b86cb3d086487af0
-source=(
-  dotnet-source-build::git+https://github.com/dotnet/source-build.git#tag=${_tag}
-  9999-Fix-versionless-RID-computation.patch
-  9999-Add-arch-RIDs.patch
-  9999-Fix-build-clang-10.patch
-)
-sha256sums=('SKIP'
-            '0e500cd3d1e4a75bf58558020f1b6ad7720f9194dfea2aade7c148af5a031cd7'
-            '1d64778c9ac6a5aa49cda743e87ed31ace6aef8aa2e22f98ccd9bb7303cfd593'
-            '9eb32eb8a7baa0dfc3d68fa7f6c316fcd14ccd9075177a5d3c8a044edb2a07c2')
-
-prepare() {
-  cd dotnet-source-build
-
-  cp ../9999-Fix-versionless-RID-computation.patch patches/core-setup/
-  cp ../9999-Add-arch-RIDs.patch patches/corefx/
-  cp ../9999-Fix-build-clang-10.patch patches/corefx/
-}
-
-build() {
-  cd dotnet-source-build
-
-  export SOURCE_BUILD_SKIP_SUBMODULE_CHECK=1
-
-  ./build.sh
-}
-
-package_dotnet-host() {
-  pkgdesc='A generic driver for the .NET Core Command Line Interface'
-  depends=(glibc)
-
-  cd dotnet-source-build/artifacts/x64/Release
-
-  install -dm 755 "${pkgdir}"/usr/{bin,lib,share/{dotnet,licenses/dotnet-host}}
-  bsdtar -xf dotnet-sdk-${_sdkver}-arch-x64.tar.gz -C "${pkgdir}"/usr/share/dotnet/ --no-same-owner dotnet host
-  bsdtar -xf dotnet-sdk-${_sdkver}-arch-x64.tar.gz -C "${pkgdir}"/usr/share/licenses/dotnet-host/ --no-same-owner LICENSE.txt ThirdPartyNotices.txt
-  ln -s /usr/share/dotnet/dotnet "${pkgdir}"/usr/bin/dotnet
-  ln -s /usr/share/dotnet/host/fxr/${_runtimever}/libhostfxr.so "${pkgdir}"/usr/lib/libhostfxr.so
-}
-
-package_dotnet-runtime() {
-  pkgdesc='The .NET Core runtime'
-  depends=(
-    dotnet-host
-    glibc
-    icu
-    krb5
-    libcurl.so
-    libunwind
-    openssl
-    zlib
-  )
-
-  optdepends=('lttng-ust: CoreCLR tracing')
-  provides=(dotnet-runtime-3.1)
-  conflicts=(dotnet-runtime-3.1)
-
-  cd dotnet-source-build/artifacts/x64/Release
-
-  install -dm 755 "${pkgdir}"/usr/share/{dotnet,licenses}
-  bsdtar -xf dotnet-sdk-${_sdkver}-arch-x64.tar.gz -C "${pkgdir}"/usr/share/dotnet/ --no-same-owner shared/Microsoft.NETCore.App
-  ln -s dotnet-host "${pkgdir}"/usr/share/licenses/dotnet-runtime
-}
-
-package_dotnet-sdk() {
-  pkgdesc='The .NET Core SDK'
-  depends=(
-    dotnet-runtime
-    glibc
-  )
-  provides=(dotnet-sdk-3.1)
-  conflicts=(dotnet-sdk-3.1)
-
-  cd dotnet-source-build/artifacts/x64/Release
-
-  install -dm 755 "${pkgdir}"/usr/share/{dotnet,licenses}
-  bsdtar -xf dotnet-sdk-${_sdkver}-arch-x64.tar.gz -C "${pkgdir}"/usr/share/dotnet/ --no-same-owner packs sdk templates
-  ln -s dotnet-host "${pkgdir}"/usr/share/licenses/dotnet-sdk
-}
-
-package_aspnet-runtime() {
-  pkgdesc='The ASP.NET Core runtime'
-  depends=(dotnet-runtime)
-  provides=(aspnet-runtime-3.1)
-  conflicts=(aspnet-runtime-3.1)
-
-  cd dotnet-source-build/artifacts/x64/Release
-
-  install -dm 755 "${pkgdir}"/usr/share/{dotnet,licenses}
-  bsdtar -xf dotnet-sdk-${_sdkver}-arch-x64.tar.gz -C "${pkgdir}"/usr/share/dotnet/ --no-same-owner shared/Microsoft.AspNetCore.App
-  ln -s dotnet-host "${pkgdir}"/usr/share/licenses/aspnet-runtime
-}
-
-# vim: ts=2 sw=2 et:

Copied: dotnet-core/repos/community-x86_64/PKGBUILD (from rev 665924, dotnet-core/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-07-30 17:13:13 UTC (rev 665925)
@@ -0,0 +1,175 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Max Liebkies <mail at maxliebkies.de>
+# Contributor: Krzysztof Bogacki <krzysztof.bogacki at leancode.pl>
+
+pkgbase=dotnet-core
+pkgname=(
+ dotnet-host
+ dotnet-runtime
+ aspnet-runtime
+ dotnet-sdk
+ netstandard-targeting-pack
+ dotnet-targeting-pack
+ aspnet-targeting-pack
+)
+pkgver=3.1.6.sdk106
+_runtimever=3.1.6
+_sdkver=3.1.106
+pkgrel=2
+arch=(x86_64)
+url=https://www.microsoft.com/net/core
+license=(MIT)
+makedepends=(
+  bash
+  clang
+  cmake
+  curl
+  git
+  icu
+  inetutils
+  krb5
+  libgit2
+  libunwind
+  lldb
+  llvm
+  lttng-ust
+  openssl
+  zlib
+)
+options=(staticlibs)
+_tag=bebae309898f714f8d3e79f1b86cb3d086487af0
+source=(
+  dotnet-source-build::git+https://github.com/dotnet/source-build.git#tag=${_tag}
+  9999-Fix-versionless-RID-computation.patch
+  9999-Add-arch-RIDs.patch
+  9999-Fix-build-clang-10.patch
+)
+sha256sums=('SKIP'
+            '0e500cd3d1e4a75bf58558020f1b6ad7720f9194dfea2aade7c148af5a031cd7'
+            '1d64778c9ac6a5aa49cda743e87ed31ace6aef8aa2e22f98ccd9bb7303cfd593'
+            '9eb32eb8a7baa0dfc3d68fa7f6c316fcd14ccd9075177a5d3c8a044edb2a07c2')
+
+prepare() {
+  cd dotnet-source-build
+
+  cp ../9999-Fix-versionless-RID-computation.patch patches/core-setup/
+  cp ../9999-Add-arch-RIDs.patch patches/corefx/
+  cp ../9999-Fix-build-clang-10.patch patches/corefx/
+}
+
+build() {
+  cd dotnet-source-build
+
+  export SOURCE_BUILD_SKIP_SUBMODULE_CHECK=1
+
+  ./build.sh
+}
+
+package_dotnet-host() {
+  pkgdesc='A generic driver for the .NET Core Command Line Interface'
+  depends=(glibc)
+
+  cd dotnet-source-build/artifacts/x64/Release
+
+  install -dm 755 "${pkgdir}"/usr/{bin,lib,share/{dotnet,licenses/dotnet-host}}
+  bsdtar -xf dotnet-sdk-${_sdkver}-arch-x64.tar.gz -C "${pkgdir}"/usr/share/dotnet/ --no-same-owner dotnet host
+  bsdtar -xf dotnet-sdk-${_sdkver}-arch-x64.tar.gz -C "${pkgdir}"/usr/share/licenses/dotnet-host/ --no-same-owner LICENSE.txt ThirdPartyNotices.txt
+  ln -s /usr/share/dotnet/dotnet "${pkgdir}"/usr/bin/dotnet
+  ln -s /usr/share/dotnet/host/fxr/${_runtimever}/libhostfxr.so "${pkgdir}"/usr/lib/libhostfxr.so
+}
+
+package_dotnet-runtime() {
+  pkgdesc='The .NET Core runtime'
+  depends=(
+    dotnet-host
+    glibc
+    icu
+    krb5
+    libcurl.so
+    libunwind
+    openssl
+    zlib
+  )
+
+  optdepends=('lttng-ust: CoreCLR tracing')
+  provides=(dotnet-runtime-3.1)
+  conflicts=(dotnet-runtime-3.1)
+
+  cd dotnet-source-build/artifacts/x64/Release
+
+  install -dm 755 "${pkgdir}"/usr/share/{dotnet,licenses}
+  bsdtar -xf dotnet-sdk-${_sdkver}-arch-x64.tar.gz -C "${pkgdir}"/usr/share/dotnet/ --no-same-owner shared/Microsoft.NETCore.App
+  ln -s dotnet-host "${pkgdir}"/usr/share/licenses/dotnet-runtime
+}
+
+package_aspnet-runtime() {
+  pkgdesc='The ASP.NET Core runtime'
+  depends=(dotnet-runtime)
+  provides=(aspnet-runtime-3.1)
+  conflicts=(aspnet-runtime-3.1)
+
+  cd dotnet-source-build/artifacts/x64/Release
+
+  install -dm 755 "${pkgdir}"/usr/share/{dotnet,licenses}
+  bsdtar -xf dotnet-sdk-${_sdkver}-arch-x64.tar.gz -C "${pkgdir}"/usr/share/dotnet/ --no-same-owner shared/Microsoft.AspNetCore.App
+  ln -s dotnet-host "${pkgdir}"/usr/share/licenses/aspnet-runtime
+}
+
+package_dotnet-sdk() {
+  pkgdesc='The .NET Core SDK'
+  depends=(
+    dotnet-runtime
+    dotnet-targeting-pack
+    glibc
+    netstandard-targeting-pack
+  )
+  optdepends=('aspnet-targeting-pack: Build ASP.NET Core applications')
+  provides=(dotnet-sdk-3.1)
+  conflicts=(dotnet-sdk-3.1)
+
+  cd dotnet-source-build/artifacts/x64/Release
+
+  install -dm 755 "${pkgdir}"/usr/share/{dotnet,licenses}
+  bsdtar -xf dotnet-sdk-${_sdkver}-arch-x64.tar.gz -C "${pkgdir}"/usr/share/dotnet/ --no-same-owner sdk templates
+  ln -s dotnet-host "${pkgdir}"/usr/share/licenses/dotnet-sdk
+}
+
+package_netstandard-targeting-pack() {
+  pkgdesc='The .NET Standard targeting pack'
+  provides=(netstandard-targeting-pack-2.1)
+  conflicts=(netstandard-targeting-pack-2.1)
+
+  cd dotnet-source-build/artifacts/x64/Release
+
+  install -dm 755 "${pkgdir}"/usr/share/{dotnet,licenses}
+  bsdtar -xf dotnet-sdk-${_sdkver}-arch-x64.tar.gz -C "${pkgdir}"/usr/share/dotnet/ --no-same-owner packs/NETStandard.Library.Ref
+  ln -s dotnet-host "${pkgdir}"/usr/share/licenses/netstandard-targeting-pack
+}
+
+package_dotnet-targeting-pack() {
+  pkgdesc='The .NET Core targeting pack'
+  depends=(netstandard-targeting-pack)
+  provides=(dotnet-targeting-pack-3.1)
+  conflicts=(dotnet-targeting-pack-3.1)
+
+  cd dotnet-source-build/artifacts/x64/Release
+
+  install -dm 755 "${pkgdir}"/usr/share/{dotnet,licenses}
+  bsdtar -xf dotnet-sdk-${_sdkver}-arch-x64.tar.gz -C "${pkgdir}"/usr/share/dotnet/ --no-same-owner packs/Microsoft.NETCore.App.{Host.arch-x64,Ref}
+  ln -s dotnet-host "${pkgdir}"/usr/share/licenses/dotnet-targeting-pack
+}
+
+package_aspnet-targeting-pack() {
+  pkgdesc='The ASP.NET Core targeting pack'
+  depends=(dotnet-targeting-pack)
+  provides=(aspnet-targeting-pack-3.1)
+  conflicts=(aspnet-targeting-pack-3.1)
+
+  cd dotnet-source-build/artifacts/x64/Release
+
+  install -dm 755 "${pkgdir}"/usr/share/{dotnet,licenses}
+  bsdtar -xf dotnet-sdk-${_sdkver}-arch-x64.tar.gz -C "${pkgdir}"/usr/share/dotnet/ --no-same-owner packs/Microsoft.AspNetCore.App.Ref
+  ln -s dotnet-host "${pkgdir}"/usr/share/licenses/aspnet-targeting-pack
+}
+
+# vim: ts=2 sw=2 et:


More information about the arch-commits mailing list