[arch-commits] Commit in dotnet-core/repos (3 files)

Maxime Gauduin alucryd at archlinux.org
Tue Dec 17 17:28:21 UTC 2019


    Date: Tuesday, December 17, 2019 @ 17:28:20
  Author: alucryd
Revision: 537938

archrelease: copy trunk to community-staging-x86_64

Added:
  dotnet-core/repos/community-staging-x86_64/
  dotnet-core/repos/community-staging-x86_64/9999-Fix-versionless-RID-computation.patch
    (from rev 537937, dotnet-core/trunk/9999-Fix-versionless-RID-computation.patch)
  dotnet-core/repos/community-staging-x86_64/PKGBUILD
    (from rev 537937, dotnet-core/trunk/PKGBUILD)

--------------------------------------------+
 9999-Fix-versionless-RID-computation.patch |   13 ++
 PKGBUILD                                   |  123 +++++++++++++++++++++++++++
 2 files changed, 136 insertions(+)

Copied: dotnet-core/repos/community-staging-x86_64/9999-Fix-versionless-RID-computation.patch (from rev 537937, dotnet-core/trunk/9999-Fix-versionless-RID-computation.patch)
===================================================================
--- community-staging-x86_64/9999-Fix-versionless-RID-computation.patch	                        (rev 0)
+++ community-staging-x86_64/9999-Fix-versionless-RID-computation.patch	2019-12-17 17:28:20 UTC (rev 537938)
@@ -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

Copied: dotnet-core/repos/community-staging-x86_64/PKGBUILD (from rev 537937, dotnet-core/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-12-17 17:28:20 UTC (rev 537938)
@@ -0,0 +1,123 @@
+# 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.0.sdk100
+_runtimever=3.1.0
+_sdkver=3.1.100
+pkgrel=1
+arch=(x86_64)
+url=https://www.microsoft.com/net/core
+license=(MIT)
+makedepends=(
+  clang
+  cmake
+  curl
+  git
+  icu
+  inetutils
+  krb5
+  libgit2
+  libunwind
+  lldb
+  llvm
+  lttng-ust
+  openssl
+  zlib
+)
+options=(staticlibs)
+source=(
+  dotnet-source-build::git+https://github.com/dotnet/source-build.git#tag=4e9ce2915ba680d38b47a2dadd74ec3b52a09d1b
+  9999-Fix-versionless-RID-computation.patch
+)
+sha256sums=('SKIP'
+            '0e500cd3d1e4a75bf58558020f1b6ad7720f9194dfea2aade7c148af5a031cd7')
+
+prepare() {
+  cd dotnet-source-build
+
+  cp ../9999-Fix-versionless-RID-computation.patch patches/core-setup/
+}
+
+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/bin/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/bin/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/bin/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/bin/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:



More information about the arch-commits mailing list