Date: Wednesday, June 27, 2018 @ 18:13:03 Author: alucryd Revision: 346557
upgpkg: dotnet-core 2.1.1-1 Modified: dotnet-core/trunk/PKGBUILD ----------+ PKGBUILD | 115 +++++++++++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 104 insertions(+), 11 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-06-27 16:59:15 UTC (rev 346556) +++ PKGBUILD 2018-06-27 18:13:03 UTC (rev 346557) @@ -1,37 +1,116 @@ # $Id$ # Maintainer: Maxime Gauduin <[email protected]> # Contributor: Max Liebkies <[email protected]> -# Contributor: Florian Maunier <[email protected]> pkgbase=dotnet-core -pkgname=('dotnet-host' 'dotnet-runtime' 'aspnet-runtime') -pkgver=2.1.0 -pkgrel=3 +pkgname=('dotnet-host' 'dotnet-runtime' 'aspnet-runtime' 'dotnet-sdk') +pkgver=2.1.1 +_pkgver_sdk=2.1.301 +pkgrel=1 arch=('x86_64') url='https://www.microsoft.com/net/core' license=('MIT') +makedepends=( + 'clang' 'cmake' 'curl' 'git' 'icu' 'krb5' 'libunwind' 'lldb' 'llvm' + 'lttng-ust' 'openssl-1.0' 'zlib' +) options=('staticlibs') -source=('https://download.microsoft.com/download/9/1/7/917308D9-6C92-4DA5-B4B1-B4A19451E2D2/aspnetcore-runtime-2.1.0-linux-x64.tar.gz') -sha256sums=('1f75c6d98cf729f74dfbeb5a36207567912e0e61e9bac0bf0f72046fa7a81d4b') +_commit='1dd84aaa2e44f1694ce0e681f96b6cd4e79f48ff' +source=( + "dotnet-source-build::git+https://github.com/dotnet/source-build.git#commit=${_commit}" + 'dotnet-application-insights::git+https://github.com/Microsoft/ApplicationInsights-dotnet.git' + 'dotnet-cli::git+https://github.com/dotnet/cli.git' + 'dotnet-cli-migrate::git+https://github.com/dotnet/cli-migrate.git' + 'dotnet-clicommandlineparser::git+https://github.com/dotnet/clicommandlineparser.git' + 'dotnet-common::git+https://github.com/aspnet/common.git' + 'dotnet-core-setup::git+https://github.com/dotnet/core-setup.git' + 'dotnet-coreclr::git+https://github.com/dotnet/coreclr.git' + 'dotnet-corefx::git+https://github.com/dotnet/corefx.git' + 'dotnet-fsharp::git+https://github.com/Microsoft/VisualFSharp.git' + 'dotnet-msbuild::git+https://github.com/Microsoft/msbuild.git' + 'dotnet-newtonsoft-json::git+https://github.com/JamesNK/Newtonsoft.Json.git' + 'dotnet-nuget-client::git+https://github.com/NuGet/NuGet.Client.git' + 'dotnet-roslyn::git+https://github.com/dotnet/roslyn.git' + 'dotnet-roslyn-tools::git+https://github.com/dotnet/roslyn-tools.git' + 'dotnet-sdk::git+https://github.com/dotnet/sdk.git' + 'dotnet-standard::git+https://github.com/dotnet/standard.git' + 'dotnet-templating::git+https://github.com/dotnet/templating.git' + 'dotnet-vstest::git+https://github.com/Microsoft/vstest.git' + 'dotnet-websdk::git+https://github.com/aspnet/websdk.git' + 'dotnet-xliff-tasks::git+https://github.com/dotnet/xliff-tasks.git' + 'https://download.microsoft.com/download/9/3/E/93ED35C8-57B9-4D50-AE32-0330111B38E8/aspnetcore-runtime-2.1.1-linux-x64.tar.gz' + 'dotnet-coreclr-rid.patch' +) +sha256sums=('SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'e92ca4f35996e5793f611b1c9714134321328a00fc754bb32d8120052c0eb9c3' + '2c4fc48151e5319d57c8761091709070a17da91eddc2de8a26bc32c60679bfee') +prepare() { + cd dotnet-source-build + + for submodule in src/{application-insights,cli,cli-migrate,clicommandlineparser,common,core-setup,coreclr,corefx,fsharp,msbuild,newtonsoft-json,nuget-client,roslyn,roslyn-tools,sdk,standard,templating,vstest,websdk,xliff-tasks}; do + git submodule init ${submodule} + git config submodule.${submodule}.url ../dotnet-${submodule#src/} + git submodule update + done + + cd src/coreclr + + patch -Np1 -i "${srcdir}"/dotnet-coreclr-rid.patch +} + +build() { + cd dotnet-source-build + + export PKG_CONFIG_PATH='/usr/lib/openssl-1.0/pkgconfig' + export SOURCE_BUILD_SKIP_SUBMODULE_CHECK=1 + + ./build.sh +} + package_dotnet-host() { pkgdesc='A generic driver for the .NET Core Command Line Interface' + cd dotnet-source-build/bin/x64/Release + install -dm 755 "${pkgdir}"/{opt/dotnet,usr/bin,usr/share/licenses/dotnet-host} - cp -dr --no-preserve='ownership' dotnet host "${pkgdir}"/opt/dotnet/ - install -m 644 *.txt -t "${pkgdir}"/usr/share/licenses/dotnet-host/ + tar -C "${pkgdir}"/opt/dotnet -xf dotnet-sdk-${_pkgver_sdk}-linux-x64.tar.gz ./dotnet ./host + tar -C "${pkgdir}"/usr/share/licenses/dotnet-host -xf dotnet-sdk-${_pkgver_sdk}-linux-x64.tar.gz ./LICENSE.txt ./ThirdPartyNotices.txt ln -s /opt/dotnet/dotnet "${pkgdir}"/usr/bin/ } package_dotnet-runtime() { pkgdesc='The .NET Core runtime' - depends=('dotnet-host' 'icu' 'krb5' 'lttng-ust' 'openssl-1.0' 'zlib' + depends=('dotnet-host' 'icu' 'krb5' 'openssl-1.0' 'zlib' 'libcurl.so') + optdepends=('lttng-ust: CoreCLR tracing') provides=('dotnet-runtime-2.1') conflicts=('dotnet-runtime-2.1') - install -dm 755 "${pkgdir}"/{opt/dotnet/shared,usr/share/licenses} - cp -dr --no-preserve='ownership' shared/Microsoft.NETCore.App "${pkgdir}"/opt/dotnet/shared/ + cd dotnet-source-build/bin/x64/Release + + install -dm 755 "${pkgdir}"/{opt/dotnet,usr/share/licenses} + tar -C "${pkgdir}"/opt/dotnet -xf dotnet-sdk-${_pkgver_sdk}-linux-x64.tar.gz ./shared ln -s dotnet-host "${pkgdir}"/usr/share/licenses/dotnet-runtime } @@ -46,4 +125,18 @@ ln -s dotnet-host "${pkgdir}"/usr/share/licenses/aspnet-runtime } +package_dotnet-sdk() { + pkgver=${_pkgver_sdk} + pkgdesc='The .NET Core SDK' + depends=('dotnet-runtime') + provides=('dotnet-sdk-2.1') + conflicts=('dotnet-sdk-2.1') + + cd dotnet-source-build/bin/x64/Release + + install -dm 755 "${pkgdir}"/{opt/dotnet,usr/share/licenses} + tar -C "${pkgdir}"/opt/dotnet -xf dotnet-sdk-${_pkgver_sdk}-linux-x64.tar.gz ./sdk + ln -s dotnet-host "${pkgdir}"/usr/share/licenses/dotnet-sdk +} + # vim: ts=2 sw=2 et:
