# Maintainer: Attila Greguss pkgbase=dotnet-core-bin pkgname=( 'dotnet-host-bin' 'aspnet-runtime-bin' 'dotnet-runtime-bin' 'dotnet-sdk-bin' 'netstandard-targeting-pack-bin' 'dotnet-targeting-pack-bin' 'aspnet-targeting-pack-bin' ) pkgver=5.0.8.sdk302 _runtimever=5.0.8 _sdkver=5.0.302 pkgrel=1 arch=('x86_64' 'armv7h' 'aarch64') url='https://www.microsoft.com/net/core' license=('MIT') options=('staticlibs') source_armv7h=('https://download.visualstudio.microsoft.com/download/pr/f456f253-db24-45ea-9c73-f507f93a8cd2/6efe7bed8639344d9c9afb8a46686c99/dotnet-sdk-5.0.302-linux-arm.tar.gz') source_aarch64=('https://download.visualstudio.microsoft.com/download/pr/99d2e2e5-32b0-41e1-982d-82223eab6b8b/e4a5f67ab76a1ba54b6eae853bbdd354/dotnet-sdk-5.0.302-linux-arm64.tar.gz') source_x86_64=('https://download.visualstudio.microsoft.com/download/pr/8468e541-a99a-4191-8470-654fa0747a9a/cb32548d2fd3d60ef3fe8fc80cd735ef/dotnet-sdk-5.0.302-linux-x64.tar.gz') sha512sums_armv7h=('31298ab7f165bb0c5be35de25d7f2eb09ae02422ccf23aa664a40c4828780d9e0f00a91dfce1e8a54bca9f88a90c361ed697343d92d467b7509c6612a8e25952') sha512sums_aarch64=('56bbe76febccdda15405d9c7037e73fdd3a7e39d7057d76b89899ebb32bf6f180dad0ecc9274f765439dee511629a87598d8c4d61e3c8cb93c703ed0430228ae') sha512sums_x86_64=('c80df1f2208f07a76e6bc123aa0fe94879e202dbab9006a5bcd6ec8508e58aa9da5e2c7736f45a2c307016bb6356e8c5ce39cd4ca65d732091d7f46c7eacc397') package_dotnet-host-bin() { pkgdesc='A generic driver for the .NET Core Command Line Interface (binary)' provides=("dotnet-host" "dotnet-host=${_runtimever}") conflicts=('dotnet-host') install -dm 755 "${pkgdir}"/usr/{bin,lib,share/{dotnet,licenses/dotnet-host}} 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 ln -sf /usr/share/dotnet/dotnet "${pkgdir}"/usr/bin/dotnet ln -sf /usr/share/dotnet/host/fxr/"${_runtimever}"/libhostfxr.so "${pkgdir}"/usr/lib/libhostfxr.so } package_dotnet-runtime-bin() { pkgdesc='The .NET Core runtime (binary)' depends=("dotnet-host>=${_runtimever}" 'glibc' 'icu' 'krb5' 'libcurl.so' 'libunwind' 'openssl' 'zlib' ) optdepends=('lttng-ust: CoreCLR tracing') provides=("dotnet-runtime=${_runtimever}" "dotnet-runtime-5.0") conflicts=("dotnet-runtime=${_runtimever}" "dotnet-runtime-5.0") 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-bin "${pkgdir}"/usr/share/licenses/dotnet-runtime-bin } package_aspnet-runtime-bin() { pkgdesc='The ASP.NET Core runtime (binary)' depends=('dotnet-runtime-bin') provides=("aspnet-runtime=${_runtimever}" "aspnet-runtime-5.0") conflicts=("aspnet-runtime=${_runtimever}" "aspnet-runtime-5.0") 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-bin "${pkgdir}"/usr/share/licenses/aspnet-runtime-bin } package_dotnet-sdk-bin() { pkgdesc='The .NET Core SDK (binary)' depends=( 'dotnet-runtime-bin' 'glibc' 'dotnet-targeting-pack-bin' 'netstandard-targeting-pack-bin') optdepends=('aspnet-targeting-pack-bin: Build ASP.NET Core applications') provides=("dotnet-sdk-bin" "dotnet-sdk=${pkgver}" "dotnet-sdk-5.0") conflicts=("dotnet-sdk-bin" "dotnet-sdk=${pkgver}" "dotnet-sdk-5.0") install -dm 755 "${pkgdir}"/usr/share/{dotnet,licenses} cp -dr --no-preserve='ownership' sdk templates "${pkgdir}"/usr/share/dotnet/ ln -s dotnet-host-bin "${pkgdir}"/usr/share/licenses/dotnet-sdk-bin } package_netstandard-targeting-pack-bin() { pkgdesc='The .NET Standard targeting pack (binary)' provides=('netstandard-targeting-pack-2.1' 'netstandard-targeting-pack') conflicts=('netstandard-targeting-pack-2.1' 'netstandard-targeting-pack') 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-bin "${pkgdir}"/usr/share/licenses/netstandard-targeting-pack } package_dotnet-targeting-pack-bin() { pkgdesc='The .NET Core targeting pack (binary)' depends=(netstandard-targeting-pack-bin) provides=(dotnet-targeting-pack=${_runtimever} dotnet-targeting-pack-5.0) conflicts=(dotnet-targeting-pack=${_runtimever} dotnet-targeting-pack-5.0) 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-bin "${pkgdir}"/usr/share/licenses/dotnet-targeting-pack-bin } package_aspnet-targeting-pack-bin() { pkgdesc='The ASP.NET Core targeting pack (binary)' depends=(dotnet-targeting-pack-bin) provides=(aspnet-targeting-pack=${_runtimever} aspnet-targeting-pack-5.0) conflicts=(aspnet-targeting-pack=${_runtimever} aspnet-targeting-pack-5.0) 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-bin "${pkgdir}"/usr/share/licenses/aspnet-targeting-pack-bin }