# 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=7.0.4.sdk202 _runtimever=7.0.4 _sdkver=7.0.202 _short_ver=7.0 pkgrel=1 arch=('x86_64' 'armv7h' 'aarch64') url='https://www.microsoft.com/net/core' license=('MIT') options=('staticlibs') source=('dotnet.sh') source_armv7h=('https://download.visualstudio.microsoft.com/download/pr/6b56da47-dbe4-4921-a08e-eb3826565525/36ecf89507f52cc70ec2128b13948290/dotnet-sdk-7.0.202-linux-arm.tar.gz') source_aarch64=('https://download.visualstudio.microsoft.com/download/pr/c1fd11b0-186a-4aa1-a578-bb1b6613886e/b67e1c9d6d90b1c99b23935273921fa1/dotnet-sdk-7.0.202-linux-arm64.tar.gz') source_x86_64=('https://download.visualstudio.microsoft.com/download/pr/bda88810-e1a6-4cf0-8139-7fd7fe7b2c7a/7a9ffa3e12e5f1c3d8b640e326c1eb14/dotnet-sdk-7.0.202-linux-x64.tar.gz') sha512sums=('e61b9e3e5a2305646a616d598378230c9755c5dd5363692cc363f8f4add3807563c324dd86f3a7ae9d358c82d730608e7b293935a2b6c81c0c0f62d752a0a1cf') sha512sums_armv7h=('242c3b93b6ca39e89a7f30f0c29d71294200a2eb14a95bd3f017ed0cb83f3c5ecc6a0d0b0ffab3687d1f925419619a8508f96d1262bd522f6c876a75d929e88a') sha512sums_aarch64=('6f03de4ef1d0f67bcf8f794beea1a1497c9b1d31c484675382ad63a686ad3047ba2e12b2739ef2bf70c12e61a462ee8abd87e96a7c48200dceab92094144b332') sha512sums_x86_64=('f415a8e6c078421759a963aa0b232c092ecf2f0a8e014ba72092390aac792ed35e8f3c822b2ce91ed636cdee9342bba2b89fb4fdfd2d28dbb0ac856d828cb29f') package_dotnet-host-bin() { pkgdesc='A generic driver for the .NET Core Command Line Interface (binary)' provides=("dotnet-host" "dotnet-host=${_runtimever}") depends=( 'gcc-libs' 'glibc' ) 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 install -Dm 644 "${srcdir}"/dotnet.sh -t "${pkgdir}"/etc/profile.d/ } package_dotnet-runtime-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-${_short_ver}") conflicts=("dotnet-runtime=${_runtimever}" "dotnet-runtime-${_short_ver}") 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-${_short_ver}") conflicts=("aspnet-runtime=${_runtimever}" "aspnet-runtime-${_short_ver}") 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=( '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-bin" "dotnet-sdk=${pkgver}" "dotnet-sdk-${_short_ver}") conflicts=("dotnet-sdk-bin" "dotnet-sdk=${pkgver}" "dotnet-sdk-${_short_ver}") 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-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-${_short_ver}) conflicts=(dotnet-targeting-pack=${_runtimever} dotnet-targeting-pack-${_short_ver}) 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-${_short_ver}) conflicts=(aspnet-targeting-pack=${_runtimever} aspnet-targeting-pack-${_short_ver}) 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 }