# Maintainer: Attila Greguss pkgbase=dotnet-core-6.0-bin pkgname=( 'aspnet-runtime-6.0-bin' 'dotnet-runtime-6.0-bin' 'dotnet-sdk-6.0-bin' 'dotnet-targeting-pack-6.0-bin' 'aspnet-targeting-pack-6.0-bin' ) pkgver=6.0.11.sdk403 _runtimever=6.0.11 _sdkver=6.0.403 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/10cadabb-4cb4-4cca-94db-67cb31cb6f3a/5b3d102b4198da0a25ed12d83ae5633d/dotnet-sdk-6.0.403-linux-arm.tar.gz') source_aarch64=('https://download.visualstudio.microsoft.com/download/pr/67ca3f83-3769-4cd8-882a-27ab0c191784/bf631a0229827de92f5c026055218cc0/dotnet-sdk-6.0.403-linux-arm64.tar.gz') source_x86_64=('https://download.visualstudio.microsoft.com/download/pr/1d2007d3-da35-48ad-80cc-a39cbc726908/1f3555baa8b14c3327bb4eaa570d7d07/dotnet-sdk-6.0.403-linux-x64.tar.gz') sha512sums_armv7h=('b07423700a92e3cc79f4e9e02c40e923352c09958e3307fd2ce7fc882509460c65a4404e8080f1b3852af98458512699ba43b37683916756666b4e2532cc8f46') sha512sums_aarch64=('fe62f6eca80acb6774f0a80c472dd02851d88f7ec09cc7f1cadd9981ec0ee1ceb87224911fc0c544cb932c7f5a91c66471a0458b50f85c899154bc8c3605a88e') sha512sums_x86_64=('779b3e24a889dbb517e5ff5359dab45dd3296160e4cb5592e6e41ea15cbf87279f08405febf07517aa02351f953b603e59648550a096eefcb0a20fdaf03fadde') package_dotnet-runtime-6.0-bin() { pkgdesc='The .NET Core runtime (binary)' depends=( "dotnet-host>=${_runtimever}" 'gcc-libs' 'glibc' 'icu' 'libgssapi_krb5.so' 'libunwind' 'zlib' 'openssl' ) optdepends=('lttng-ust: CoreCLR tracing') provides=("dotnet-runtime=${_runtimever}" "dotnet-runtime-6.0") conflicts=("dotnet-runtime=${_runtimever}" "dotnet-runtime-6.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-6.0-bin } package_aspnet-runtime-6.0-bin() { pkgdesc='The ASP.NET Core runtime (binary)' depends=('dotnet-runtime-bin') provides=("aspnet-runtime=${_runtimever}" "aspnet-runtime-6.0") conflicts=("aspnet-runtime=${_runtimever}" "aspnet-runtime-6.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-6.0-bin } package_dotnet-sdk-6.0-bin() { pkgdesc='The .NET Core SDK (binary)' depends=( 'glibc' 'gcc-libs' 'dotnet-runtime-bin' 'dotnet-targeting-pack-bin' 'netstandard-targeting-pack-bin') optdepends=('aspnet-targeting-pack-bin: Build ASP.NET Core applications') provides=("dotnet-sdk=${pkgver}" "dotnet-sdk-6.0") conflicts=("dotnet-sdk=${pkgver}" "dotnet-sdk-6.0") 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-bin "${pkgdir}"/usr/share/licenses/dotnet-sdk-6.0-bin } package_dotnet-targeting-pack-6.0-bin() { pkgdesc='The .NET Core targeting pack (binary)' depends=(netstandard-targeting-pack-bin) provides=(dotnet-targeting-pack=${_runtimever} dotnet-targeting-pack-6.0) conflicts=(dotnet-targeting-pack=${_runtimever} dotnet-targeting-pack-6.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-6.0-bin } package_aspnet-targeting-pack-6.0-bin() { pkgdesc='The ASP.NET Core targeting pack (binary)' depends=(dotnet-targeting-pack-bin) provides=(aspnet-targeting-pack=${_runtimever} aspnet-targeting-pack-6.0) conflicts=(aspnet-targeting-pack=${_runtimever} aspnet-targeting-pack-6.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-6.0-bin }