nponeccop

Dotnet Core 2.2 PKGBUILD for Arch Linux

Apr 15th, 2020
733
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Attila Greguss <floyd0122[at]gmail[dot]com>
  2.  
  3. pkgbase=dotnet-core-2.2.1xx
  4. pkgname=('dotnet-runtime-2.2.1xx' 'dotnet-sdk-2.2.1xx')
  5. pkgver=2.2.8.sdk110
  6. _runtimever=2.2.8
  7. _sdkver=2.2.110
  8. pkgrel=1
  9. arch=('x86_64' 'armv7h' 'aarch64')
  10. url='https://www.microsoft.com/net/core'
  11. license=('MIT')
  12. makedepends=(
  13.   'clang' 'cmake' 'curl' 'git' 'icu' 'krb5' 'libunwind' 'lldb' 'llvm'
  14.   'openssl' 'zlib'
  15. )
  16. options=('staticlibs')
  17.  
  18. # sources are taken from
  19. # https://github.com/dotnet/core/blob/master/release-notes/2.2/releases.json
  20.  
  21. source_armv7h=('https://download.visualstudio.microsoft.com/download/pr/57666a6d-0c82-4431-b251-f70356a1b6f7/8190a9b4ff5e962eb4547955c88848c3/dotnet-sdk-2.1.805-linux-arm.tar.gz')
  22. source_aarch64=('https://download.visualstudio.microsoft.com/download/pr/e9a7e3c5-2db0-4eb2-9dc4-cc7060d0ee81/1ed6a7621a066dd15a06d4bb4a894a29/dotnet-sdk-2.1.805-linux-arm64.tar.gz')
  23. source_x86_64=('https://download.visualstudio.microsoft.com/download/pr/42f39f2f-3f24-4340-8c57-0a3133620c21/0a353696275b00cbddc9f60069867cfc/dotnet-sdk-2.2.110-linux-x64.tar.gz')
  24. sha512sums_armv7h=('3690df6eeea6ce16986450d442e1881c42164250399f11fcc05ee539328b2fe0c54cacf08b1c9ee63dc38a468d19e4b4046ca08b430cc2ba47f8f03803caa7a6')
  25. sha512sums_aarch64=('917e48c9f6a46afd8600db405b5eabe5a067d3579c4976e8ab4626a909188a53979e4cb3119f3203f751ba9d760f8e38bfd6b4759f0887cd8cb18fb1efb159ca')
  26. sha512sums_x86_64=('cd3bc601ccc45edf38cdcc254831b88539dd51f26bdafa2d74eebb09d20d19d745fe319a93c4290e3b74a7a5d8fe851773a748ef0f23f7997c76b26e74d0d94f')
  27.  
  28. # Versioning details for dependencies
  29. # https://docs.microsoft.com/en-us/dotnet/core/versions/#versioning-details
  30.  
  31. package_dotnet-runtime-2.2.1xx() {
  32.   pkgdesc='The .NET Core runtime version 2.2'
  33.   depends=('dotnet-host' 'icu' 'krb5' 'libunwind' 'openssl' 'zlib'
  34.            'libcurl.so')
  35.   optdepends=('lttng-ust: CoreCLR tracing')
  36.   provides=("dotnet-runtime-2.2" "dotnet-runtime=${pkgver}")
  37.   conflicts=("dotnet-runtime-2.2")
  38.  
  39.   install -dm 755 "${pkgdir}"/usr/share/{dotnet/shared,licenses}
  40.   cp -dr --no-preserve='ownership' shared/Microsoft.NETCore.App "${pkgdir}"/usr/share/dotnet/shared/
  41.   ln -s dotnet-host-2.2 "${pkgdir}"/usr/share/licenses/dotnet-runtime-2.2
  42. }
  43.  
  44. package_dotnet-sdk-2.2.1xx() {
  45.   pkgdesc='The .NET Core SDK version 2.2.1xx for VS 2017'
  46.   depends=('dotnet-runtime-2.2.1xx')
  47.   provides=("dotnet-sdk-2.2" "dotnet-sdk=${pkgver}")
  48.   conflicts=("dotnet-sdk-2.2")
  49.  
  50.   install -dm 755 "${pkgdir}"/usr/share/{dotnet,licenses}
  51.   cp -dr --no-preserve='ownership' sdk "${pkgdir}"/usr/share/dotnet/
  52.   ln -s dotnet-host-2.2 "${pkgdir}"/usr/share/licenses/dotnet-sdk-2.2
  53. }
RAW Paste Data