# Maintainer: Florian Maunier # Contributor: Maxime Gauduin # Contributor: Max Liebkies # Contributor: Attila Greguss pkgbase=dotnet-core-preview-bin pkgname=( dotnet-host-preview-bin aspnet-runtime-preview-bin dotnet-runtime-preview-bin dotnet-sdk-preview-bin # netstandard-targeting-pack-preview-bin dotnet-targeting-pack-preview-bin aspnet-targeting-pack-preview-bin ) pkgver=7.0.0.sdk100+rc.1 _hostver=7.0.0-rc.1.22426.10 _dotnetruntimever=7.0.0-rc.1.22426.10 _aspnetruntimever=7.0.0-rc.1.22427.2 _sdkver=7.0.100-rc.1.22431.12 pkgrel=1 arch=(armv7h aarch64 x86_64) url=https://www.microsoft.com/net/core license=(MIT) options=(staticlibs) source=(dotnet.sh register-completions.bash register-completions.fish register-completions.zsh) source_armv7h=(https://download.visualstudio.microsoft.com/download/pr/11fed703-51af-4e9e-a21c-6a1c089721b2/c904471d138fcc998f07617fa826cbda/dotnet-sdk-7.0.100-rc.1.22431.12-linux-arm.tar.gz) source_aarch64=(https://download.visualstudio.microsoft.com/download/pr/620a7215-63f9-47bb-b88a-7798e958ed2d/539a8c04045ab69efa77504f75f07a23/dotnet-sdk-7.0.100-rc.1.22431.12-linux-arm64.tar.gz) source_x86_64=(https://download.visualstudio.microsoft.com/download/pr/bf594dbb-5ec8-486b-8395-95058e719e1c/42e8bc351654ed4c3ccaed58ea9180a1/dotnet-sdk-7.0.100-rc.1.22431.12-linux-x64.tar.gz) sha512sums=('e61b9e3e5a2305646a616d598378230c9755c5dd5363692cc363f8f4add3807563c324dd86f3a7ae9d358c82d730608e7b293935a2b6c81c0c0f62d752a0a1cf' '9f977e0bd12abc0dda4d914f369c58fce502b4030cf91d4248b32242d98fe5a2bbd8446502feeb914561f310dfd3c113bb6da19bfd5dfa6233109e62d22fa966' '1de3f09b96c44429b026277bb135a019b7577df2dec5f695ce51d18daefe2c1736b3359ab95f2abc46f7320c445b968e5582df92bb2bcad3ac5cfc5a32d3c5b6' 'f2be62d9cce00357b7b18ae83b976841037830b7b9ed1b67445f76e02550c904be5ab023366441199f9bb3dfd602004b0334395ffdde6c313910c1da5c39c4a3') sha512sums_armv7h=('0179dc1f7588003c3c643d58d96379a364d2ca097635cccd478a9fb44934148c907ec972167bf6c07dc8ec2a30964d3f5b6196148b48c23db25a5e4686859fce') sha512sums_aarch64=('095561f9c8aa815e3d8edcbb5c449a162c095e0034fbc091bec0954fc8d1286cd8c3aac615bd84b7d19a3a2d038001676057e4886f26a649c4dbc46cee24c8e8') sha512sums_x86_64=('7ecebf284bd1546e1575b9561f4e64bbb8d69680a7bbda6f06ff6fbf687d3a6c653b0e6a6c569241455c6f83620f0ddbe193ca5cd52384ac062c8565dd22b859') package_dotnet-host-preview-bin() { pkgdesc='A generic driver for the .NET Core Command Line Interface (preview, binary)' depends=(glibc) provides=(dotnet-host dotnet-host=${_hostver%-*}) conflicts=(dotnet-host) replaces=(dotnet-host-preview) install -dm 755 "${pkgdir}"/usr/{bin,lib,share/{dotnet,licenses/dotnet-host-preview-bin}} 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-bin 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-bin() { pkgdesc='The .NET Core runtime (preview, binary)' depends=( "dotnet-host>=${_hostver%-*}" glibc icu krb5 libcurl.so libunwind openssl zlib ) optdepends=('lttng-ust: CoreCLR tracing' 'msquic>=2.0.0: HTTP/3 support with System.Net.Quic') provides=(dotnet-runtime=${_dotnetruntimever%-*} dotnet-runtime-7.0) conflicts=(dotnet-runtime=${_dotnetruntimever%-*}) replaces=(dotnet-runtime-preview) 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-bin "${pkgdir}"/usr/share/licenses/dotnet-runtime-preview-bin } package_aspnet-runtime-preview-bin() { pkgdesc='The ASP.NET Core runtime (preview, binary)' depends=(dotnet-runtime-preview-bin) provides=(aspnet-runtime=${_aspnetruntimever%-*} aspnet-runtime-7.0) conflicts=(aspnet-runtime=${_aspnetruntimever%-*}) replaces=(aspnet-runtime-preview) 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-bin "${pkgdir}"/usr/share/licenses/aspnet-runtime-preview-bin } package_dotnet-sdk-preview-bin() { pkgdesc='The .NET Core SDK (preview, binary)' depends=( dotnet-runtime-preview-bin dotnet-targeting-pack-preview-bin glibc netstandard-targeting-pack-2.1 ) optdepends=('aspnet-targeting-pack-preview-bin: Build ASP.NET Core applications') provides=(dotnet-sdk=${_sdkver%-*} dotnet-sdk-7.0) conflicts=(dotnet-sdk=${_sdkver%-*}) replaces=(dotnet-sdk-preview) 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-bin "${pkgdir}"/usr/share/licenses/dotnet-sdk-preview-bin } # package_netstandard-targeting-pack-preview-bin() { # pkgdesc='The .NET Standard targeting pack (preview, binary)' # provides=(netstandard-targeting-pack-2.1) # conflicts=(netstandard-targeting-pack-2.1) # replaces=(netstandard-targeting-pack-preview) # 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-preview-bin "${pkgdir}"/usr/share/licenses/netstandard-targeting-pack-preview-bin # } package_dotnet-targeting-pack-preview-bin() { pkgdesc='The .NET Core targeting pack (preview, binary)' depends=(netstandard-targeting-pack-2.1) provides=(dotnet-targeting-pack=${_dotnetruntimever%-*} dotnet-targeting-pack-7.0) conflicts=(dotnet-targeting-pack=${_dotnetruntimever%-*}) replaces=(dotnet-targeting-pack-preview) if [ $CARCH = 'x86_64' ]; then msarch=x64; elif [ $CARCH = 'aarch64' ]; then msarch=arm64; elif [ $CARCH = 'armv7h' ]; then msarch=arm; 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-preview-bin "${pkgdir}"/usr/share/licenses/dotnet-targeting-pack-preview-bin } package_aspnet-targeting-pack-preview-bin() { pkgdesc='The ASP.NET Core targeting pack (preview, binary)' depends=(dotnet-targeting-pack-preview-bin) provides=(aspnet-targeting-pack=${_aspnetruntimever%-*} aspnet-targeting-pack-7.0) conflicts=(aspnet-targeting-pack=${_aspnetruntimever%-*}) replaces=(aspnet-targeting-pack-preview) 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-preview-bin "${pkgdir}"/usr/share/licenses/aspnet-targeting-pack-preview-bin }