# Maintainer: Florian Maunier # Contributor: Maxime Gauduin # Contributor: Max Liebkies # Contributor: Attila Greguss pkgbase=dotnet-core-preview pkgname=( dotnet-host-preview aspnet-runtime-preview dotnet-runtime-preview dotnet-sdk-preview # netstandard-targeting-pack-preview dotnet-targeting-pack-preview aspnet-targeting-pack-preview ) pkgver=6.0.0.sdk100+rc.1.21458.32 _hostver=6.0.0-rc.1.21451.13 _dotnetruntimever=6.0.0-rc.1.21451.13 _aspnetruntimever=6.0.0-rc.1.21452.15 _sdkver=6.0.100-rc.1.21458.32 pkgrel=1 arch=(x86_64 armv7h aarch64) url=https://www.microsoft.com/net/core license=(MIT) options=(staticlibs) source=(dotnet.sh register-completions.bash register-completions.fish register-completions.zsh) source_x86_64=(https://download.visualstudio.microsoft.com/download/pr/4880c5a4-9c22-47a7-b298-651f1294a385/795f7828d8684059705e625b33027f89/dotnet-sdk-6.0.100-rc.1.21458.32-linux-x64.tar.gz) source_armv7h=(https://download.visualstudio.microsoft.com/download/pr/5156a2cf-157d-4517-afb9-766699df8b74/077a3e0570f64d72ee2d2c72dd6b9c80/dotnet-sdk-6.0.100-rc.1.21458.32-linux-arm.tar.gz) source_aarch64=(https://download.visualstudio.microsoft.com/download/pr/18b0aaba-3d6c-4051-8694-eac3439d070d/a2848819e18f2e84657ddd4c98aee02d/dotnet-sdk-6.0.100-rc.1.21458.32-linux-arm64.tar.gz) sha512sums=('e61b9e3e5a2305646a616d598378230c9755c5dd5363692cc363f8f4add3807563c324dd86f3a7ae9d358c82d730608e7b293935a2b6c81c0c0f62d752a0a1cf' '9f977e0bd12abc0dda4d914f369c58fce502b4030cf91d4248b32242d98fe5a2bbd8446502feeb914561f310dfd3c113bb6da19bfd5dfa6233109e62d22fa966' '1de3f09b96c44429b026277bb135a019b7577df2dec5f695ce51d18daefe2c1736b3359ab95f2abc46f7320c445b968e5582df92bb2bcad3ac5cfc5a32d3c5b6' 'f2be62d9cce00357b7b18ae83b976841037830b7b9ed1b67445f76e02550c904be5ab023366441199f9bb3dfd602004b0334395ffdde6c313910c1da5c39c4a3') sha512sums_x86_64=('7a20c5ac3f8ae7a5a67b0ddc184e7eb845b57aacea65e42e451c51dd48afb8c854f25a879777f0067617bba131ad0c09fb395c62b3ec292915f9434213523463') sha512sums_armv7h=('6b60fcff5f50ebf907323cbd11bfd0ef30749502173759595d1335bbc4029e4d3c5aeb4e5eaa3c9c6db57150a06306f79addfda287837796afef86b6ead5fdc8') sha512sums_aarch64=('b27bf9be0198f7fda3eee514c86758665b144e6fc7d2f3e43223e65f80dfc85a43bbc9f61a5e8dbda2e10ec193fafd2c208e64e2e98358f0c80ef6e349bd7c33') package_dotnet-host-preview() { pkgdesc='A generic driver for the .NET Core Command Line Interface (preview, binary)' depends=(glibc) provides=(dotnet-host dotnet-host=${_hostver%-*}) conflicts=(dotnet-host) install -dm 755 "${pkgdir}"/usr/{bin,lib,share/{dotnet,licenses/dotnet-host-preview}} cp -dr --no-preserve='ownership' dotnet host "${pkgdir}"/usr/share/dotnet/ cp -dr --no-preserve='ownership' LICENSE.txt ThirdPartyNotices.txt "${pkgdir}"/usr/share/licenses/dotnet-host-preview ln -sf /usr/share/dotnet/dotnet "${pkgdir}"/usr/bin/dotnet ln -sf /usr/share/dotnet/host/fxr/"${_hostver}"/libhostfxr.so "${pkgdir}"/usr/lib/libhostfxr.so install -Dm 644 "${srcdir}"/dotnet.sh -t "${pkgdir}"/etc/profile.d/ install -Dm 644 "${srcdir}"/register-completions.bash "${pkgdir}"/usr/share/bash-completion/completions/dotnet install -Dm 644 "${srcdir}"/register-completions.fish "${pkgdir}"/usr/share/fish/vendor_completions.d/dotnet.fish install -Dm 644 "${srcdir}"/register-completions.zsh "${pkgdir}"/usr/share/zsh/site-functions/_dotnet } package_dotnet-runtime-preview() { pkgdesc='The .NET Core runtime (preview, binary)' depends=( "dotnet-host>=${_hostver%-*}" glibc icu krb5 libcurl.so libunwind openssl zlib ) optdepends=('lttng-ust: CoreCLR tracing') provides=(dotnet-runtime=${_dotnetruntimever%-*} dotnet-runtime-6.0) conflicts=(dotnet-runtime=${_dotnetruntimever%-*}) install -dm 755 "${pkgdir}"/usr/share/{dotnet/shared,licenses} cp -dr --no-preserve='ownership' shared/Microsoft.NETCore.App "${pkgdir}"/usr/share/dotnet/shared/ ln -s dotnet-host-preview "${pkgdir}"/usr/share/licenses/dotnet-runtime-preview } package_aspnet-runtime-preview() { pkgdesc='The ASP.NET Core runtime (preview, binary)' depends=(dotnet-runtime-preview) provides=(aspnet-runtime=${_aspnetruntimever%-*} aspnet-runtime-6.0) conflicts=(aspnet-runtime=${_aspnetruntimever%-*}) install -dm 755 "${pkgdir}"/usr/share/{dotnet/shared,licenses} cp -dr --no-preserve='ownership' shared/Microsoft.AspNetCore.App "${pkgdir}"/usr/share/dotnet/shared/ ln -s dotnet-host-preview "${pkgdir}"/usr/share/licenses/aspnet-runtime-preview } package_dotnet-sdk-preview() { pkgdesc='The .NET Core SDK (preview, binary)' depends=( dotnet-runtime-preview dotnet-targeting-pack-preview glibc netstandard-targeting-pack-2.1 ) optdepends=('aspnet-targeting-pack-preview: Build ASP.NET Core applications') provides=(dotnet-sdk=${_sdkver%-*} dotnet-sdk-6.0) conflicts=(dotnet-sdk=${_sdkver%-*}) install -dm 755 "${pkgdir}"/usr/share/{dotnet,licenses} cp -dr --no-preserve='ownership' sdk sdk-manifests templates "${pkgdir}"/usr/share/dotnet/ ln -s dotnet-host-preview "${pkgdir}"/usr/share/licenses/dotnet-sdk-preview } # package_netstandard-targeting-pack-preview() { # pkgdesc='The .NET Standard targeting pack (preview, binary)' # provides=(netstandard-targeting-pack-2.1) # conflicts=(netstandard-targeting-pack-2.1) # install -dm 755 "${pkgdir}"/usr/share/{dotnet,dotnet/packs,licenses} # cp -dr --no-preserve='ownership' packs/NETStandard.Library.Ref "${pkgdir}"/usr/share/dotnet/packs/ # ln -s dotnet-host "${pkgdir}"/usr/share/licenses/netstandard-targeting-pack-preview # } package_dotnet-targeting-pack-preview() { pkgdesc='The .NET Core targeting pack (preview, binary)' depends=(netstandard-targeting-pack-2.1) provides=(dotnet-targeting-pack=${_dotnetruntimever%-*} dotnet-targeting-pack-6.0) conflicts=(dotnet-targeting-pack=${_dotnetruntimever%-*}) if [ $CARCH = 'x86_64' ]; then msarch=x64; elif [ $CARCH = 'armv7h' ]; then msarch=arm; elif [ $CARCH = 'aarch64' ]; then msarch=arm64; fi install -dm 755 "${pkgdir}"/usr/share/{dotnet,dotnet/packs,licenses} cp -dr --no-preserve='ownership' packs/Microsoft.NETCore.App.{Host.linux-${msarch},Ref} "${pkgdir}"/usr/share/dotnet/packs/ ln -s dotnet-host "${pkgdir}"/usr/share/licenses/dotnet-targeting-pack-preview } package_aspnet-targeting-pack-preview() { pkgdesc='The ASP.NET Core targeting pack (preview, binary)' depends=(dotnet-targeting-pack-preview) provides=(aspnet-targeting-pack=${_aspnetruntimever%-*} aspnet-targeting-pack-6.0) conflicts=(aspnet-targeting-pack=${_aspnetruntimever%-*}) install -dm 755 "${pkgdir}"/usr/share/{dotnet,dotnet/packs,licenses} cp -dr --no-preserve='ownership' packs/Microsoft.AspNetCore.App.Ref "${pkgdir}"/usr/share/dotnet/packs/ ln -s dotnet-host "${pkgdir}"/usr/share/licenses/aspnet-targeting-pack-preview }