Guest User

PKGBUILD

a guest
Sep 10th, 2020
171
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-bin
  4. pkgname=(
  5. 'dotnet-host-bin'
  6. 'aspnet-runtime-bin'
  7. 'dotnet-runtime-bin'
  8. 'dotnet-sdk-bin'
  9. # netstandard-targeting-pack-bin
  10. 'dotnet-targeting-pack-bin'
  11. 'aspnet-targeting-pack-bin'
  12. )
  13. pkgver=3.1.8.sdk402
  14. _runtimever=3.1.8
  15. _sdkver=3.1.402
  16. pkgrel=1
  17. arch=('x86_64' 'armv7h' 'aarch64')
  18. url='https://www.microsoft.com/net/core'
  19. license=('MIT')
  20. options=('staticlibs')
  21. source_armv7h=('https://download.visualstudio.microsoft.com/download/pr/8f0dffe3-18f0-4d32-beb0-dbcb9a0d91a1/abe9a34e3f8916478f0bd80402b01b38/dotnet-sdk-3.1.402-linux-arm.tar.gz')
  22. source_aarch64=('https://download.visualstudio.microsoft.com/download/pr/186257d9-bca2-4dda-be74-006205965ec9/b2b63d45482701473d9731abc41ecc2a/dotnet-sdk-3.1.402-linux-arm64.tar.gz')
  23. source_x86_64=('https://download.visualstudio.microsoft.com/download/pr/f01e3d97-c1c3-4635-bc77-0c893be36820/6ec6acabc22468c6cc68b61625b14a7d/dotnet-sdk-3.1.402-linux-x64.tar.gz')
  24. sha512sums_armv7h=('b4ada8bff572d39262c952506661d6f328d22dd963903ed81a1c7646e1dfbd54e8f6897e0ff189bfae29f69b76b3ddecc17001b5df1ddd9e8da4cf9eebdd22d7')
  25. sha512sums_aarch64=('1704fb88a04cb5a00de5a22da4ad68237a7cce9aeaac608166f85082a4bfc86ba360b1d81c5ceb40c906cf7407e365aed73fa68a735d4ba90b334ab01a3a8455')
  26. sha512sums_x86_64=('42154efb5ad66ae3dcc300b2c0573a9537dd916fc48cbae92885a63a0b6d7f7c3a4366ca2298107783bc1f1913328f35e778dcda378da276cff3b8269495d5be')
  27.  
  28. if [ $CARCH = 'x86_64' ]; then msarch=x64; fi
  29. if [ $CARCH = 'armv7h' ]; then msarch=arm; fi
  30. if [ $CARCH = 'aarch64' ]; then msarch=arm64; fi
  31.  
  32. package_dotnet-host-bin() {
  33. pkgdesc='A generic driver for the .NET Core Command Line Interface (binary)'
  34. provides=("dotnet-host")
  35. conflicts=('dotnet-host')
  36.  
  37. install -dm 755 "${pkgdir}"/usr/{bin,lib,share/{dotnet,licenses/dotnet-host}}
  38. cp -dr --no-preserve='ownership' dotnet host "${pkgdir}"/usr/share/dotnet/
  39. cp -dr --no-preserve='ownership' LICENSE.txt ThirdPartyNotices.txt "${pkgdir}"/usr/share/licenses/dotnet-host
  40. ln -sf /usr/share/dotnet/dotnet "${pkgdir}"/usr/bin/dotnet
  41. ln -sf /usr/share/dotnet/host/fxr/"${_runtimever}"/libhostfxr.so "${pkgdir}"/usr/lib/libhostfxr.so
  42. }
  43.  
  44. package_dotnet-runtime-bin() {
  45. pkgdesc='The .NET Core runtime (binary)'
  46. depends=('dotnet-host'
  47. 'glibc'
  48. 'icu'
  49. 'krb5'
  50. 'libcurl.so'
  51. 'libunwind'
  52. 'openssl'
  53. 'zlib'
  54. )
  55. optdepends=('lttng-ust: CoreCLR tracing')
  56. provides=("dotnet-runtime-bin" "dotnet-runtime=${_runtimever}" "dotnet-runtime-3.1")
  57. conflicts=("dotnet-runtime-bin" "dotnet-runtime=${_runtimever}" "dotnet-runtime-3.1")
  58.  
  59. install -dm 755 "${pkgdir}"/usr/share/{dotnet/shared,licenses}
  60. cp -dr --no-preserve='ownership' shared/Microsoft.NETCore.App "${pkgdir}"/usr/share/dotnet/shared/
  61. ln -s dotnet-host-bin "${pkgdir}"/usr/share/licenses/dotnet-runtime-bin
  62. }
  63.  
  64. package_aspnet-runtime-bin() {
  65. pkgdesc='The ASP.NET Core runtime (binary)'
  66. depends=('dotnet-runtime-bin')
  67. provides=("aspnet-runtime-bin" "aspnet-runtime=${_runtimever}" "aspnet-runtime-3.1")
  68. conflicts=("aspnet-runtime-bin" "aspnet-runtime=${_runtimever}" "aspnet-runtime-3.1")
  69.  
  70. install -dm 755 "${pkgdir}"/usr/share/{dotnet/shared,licenses}
  71. cp -dr --no-preserve='ownership' shared/Microsoft.AspNetCore.App "${pkgdir}"/usr/share/dotnet/shared/
  72. ln -s dotnet-host-bin "${pkgdir}"/usr/share/licenses/aspnet-runtime-bin
  73. }
  74.  
  75. package_dotnet-sdk-bin() {
  76. pkgdesc='The .NET Core SDK (binary)'
  77. depends=('dotnet-runtime-bin' 'glibc')
  78. provides=("dotnet-sdk-bin" "dotnet-sdk=${pkgver}" "dotnet-sdk-3.1")
  79. conflicts=("dotnet-sdk-bin" "dotnet-sdk=${pkgver}" "dotnet-sdk-3.1")
  80. install -dm 755 "${pkgdir}"/usr/share/{dotnet,licenses}
  81. cp -dr --no-preserve='ownership' sdk templates "${pkgdir}"/usr/share/dotnet/
  82. ln -s dotnet-host-bin "${pkgdir}"/usr/share/licenses/dotnet-sdk-bin
  83. }
  84.  
  85. # package_netstandard-targeting-pack-bin() {
  86. # pkgdesc='The .NET Standard targeting pack (binary)'
  87. # provides=(netstandard-targeting-pack-2.1)
  88. # conflicts=(netstandard-targeting-pack-2.1)
  89.  
  90. # install -dm 755 "${pkgdir}"/usr/share/{dotnet,dotnet/packs,licenses}
  91. # cp -dr --no-preserve='ownership' packs/NETStandard.Library.Ref "${pkgdir}"/usr/share/dotnet/packs/
  92. # ln -s dotnet-host "${pkgdir}"/usr/share/licenses/netstandard-targeting-pack
  93. # }
  94.  
  95. package_dotnet-targeting-pack-bin() {
  96. pkgdesc='The .NET Core targeting pack (binary)'
  97. depends=(netstandard-targeting-pack)
  98. provides=(dotnet-targeting-pack=${_runtimever} dotnet-targeting-pack-3.1)
  99. conflicts=(dotnet-targeting-pack=${_runtimever})
  100.  
  101. install -dm 755 "${pkgdir}"/usr/share/{dotnet,dotnet/packs,licenses}
  102. cp -dr --no-preserve='ownership' packs/Microsoft.NETCore.App.{Host.linux-${msarch},Ref} "${pkgdir}"/usr/share/dotnet/packs/
  103. ln -s dotnet-host "${pkgdir}"/usr/share/licenses/dotnet-targeting-pack-bin
  104. }
  105.  
  106. package_aspnet-targeting-pack-bin() {
  107. pkgdesc='The ASP.NET Core targeting pack (binary)'
  108. depends=(dotnet-targeting-pack-bin)
  109. provides=(aspnet-targeting-pack=${_runtimever} aspnet-targeting-pack-3.1)
  110. conflicts=(aspnet-targeting-pack=${_runtimever})
  111.  
  112. install -dm 755 "${pkgdir}"/usr/share/{dotnet,dotnet/packs,licenses}
  113. cp -dr --no-preserve='ownership' packs/Microsoft.AspNetCore.App.Ref "${pkgdir}"/usr/share/dotnet/packs/
  114. ln -s dotnet-host "${pkgdir}"/usr/share/licenses/aspnet-targeting-pack-bin
  115. }
RAW Paste Data