[arch-commits] Commit in dotnet-core/trunk (PKGBUILD)
Maxime Gauduin
alucryd at archlinux.org
Thu Jul 30 17:13:04 UTC 2020
Date: Thursday, July 30, 2020 @ 17:13:03
Author: alucryd
Revision: 665924
FS#67075: dotnet-core 3.1.6.sdk106-2
Modified:
dotnet-core/trunk/PKGBUILD
----------+
PKGBUILD | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++----------
1 file changed, 54 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-07-30 17:08:35 UTC (rev 665923)
+++ PKGBUILD 2020-07-30 17:13:03 UTC (rev 665924)
@@ -6,13 +6,16 @@
pkgname=(
dotnet-host
dotnet-runtime
+ aspnet-runtime
dotnet-sdk
- aspnet-runtime
+ netstandard-targeting-pack
+ dotnet-targeting-pack
+ aspnet-targeting-pack
)
pkgver=3.1.6.sdk106
_runtimever=3.1.6
_sdkver=3.1.106
-pkgrel=1
+pkgrel=2
arch=(x86_64)
url=https://www.microsoft.com/net/core
license=(MIT)
@@ -99,12 +102,28 @@
ln -s dotnet-host "${pkgdir}"/usr/share/licenses/dotnet-runtime
}
+package_aspnet-runtime() {
+ pkgdesc='The ASP.NET Core runtime'
+ depends=(dotnet-runtime)
+ provides=(aspnet-runtime-3.1)
+ conflicts=(aspnet-runtime-3.1)
+
+ cd dotnet-source-build/artifacts/x64/Release
+
+ install -dm 755 "${pkgdir}"/usr/share/{dotnet,licenses}
+ bsdtar -xf dotnet-sdk-${_sdkver}-arch-x64.tar.gz -C "${pkgdir}"/usr/share/dotnet/ --no-same-owner shared/Microsoft.AspNetCore.App
+ ln -s dotnet-host "${pkgdir}"/usr/share/licenses/aspnet-runtime
+}
+
package_dotnet-sdk() {
pkgdesc='The .NET Core SDK'
depends=(
dotnet-runtime
+ dotnet-targeting-pack
glibc
+ netstandard-targeting-pack
)
+ optdepends=('aspnet-targeting-pack: Build ASP.NET Core applications')
provides=(dotnet-sdk-3.1)
conflicts=(dotnet-sdk-3.1)
@@ -111,21 +130,46 @@
cd dotnet-source-build/artifacts/x64/Release
install -dm 755 "${pkgdir}"/usr/share/{dotnet,licenses}
- bsdtar -xf dotnet-sdk-${_sdkver}-arch-x64.tar.gz -C "${pkgdir}"/usr/share/dotnet/ --no-same-owner packs sdk templates
+ bsdtar -xf dotnet-sdk-${_sdkver}-arch-x64.tar.gz -C "${pkgdir}"/usr/share/dotnet/ --no-same-owner sdk templates
ln -s dotnet-host "${pkgdir}"/usr/share/licenses/dotnet-sdk
}
-package_aspnet-runtime() {
- pkgdesc='The ASP.NET Core runtime'
- depends=(dotnet-runtime)
- provides=(aspnet-runtime-3.1)
- conflicts=(aspnet-runtime-3.1)
+package_netstandard-targeting-pack() {
+ pkgdesc='The .NET Standard targeting pack'
+ provides=(netstandard-targeting-pack-2.1)
+ conflicts=(netstandard-targeting-pack-2.1)
cd dotnet-source-build/artifacts/x64/Release
install -dm 755 "${pkgdir}"/usr/share/{dotnet,licenses}
- bsdtar -xf dotnet-sdk-${_sdkver}-arch-x64.tar.gz -C "${pkgdir}"/usr/share/dotnet/ --no-same-owner shared/Microsoft.AspNetCore.App
- ln -s dotnet-host "${pkgdir}"/usr/share/licenses/aspnet-runtime
+ bsdtar -xf dotnet-sdk-${_sdkver}-arch-x64.tar.gz -C "${pkgdir}"/usr/share/dotnet/ --no-same-owner packs/NETStandard.Library.Ref
+ ln -s dotnet-host "${pkgdir}"/usr/share/licenses/netstandard-targeting-pack
}
+package_dotnet-targeting-pack() {
+ pkgdesc='The .NET Core targeting pack'
+ depends=(netstandard-targeting-pack)
+ provides=(dotnet-targeting-pack-3.1)
+ conflicts=(dotnet-targeting-pack-3.1)
+
+ cd dotnet-source-build/artifacts/x64/Release
+
+ install -dm 755 "${pkgdir}"/usr/share/{dotnet,licenses}
+ bsdtar -xf dotnet-sdk-${_sdkver}-arch-x64.tar.gz -C "${pkgdir}"/usr/share/dotnet/ --no-same-owner packs/Microsoft.NETCore.App.{Host.arch-x64,Ref}
+ ln -s dotnet-host "${pkgdir}"/usr/share/licenses/dotnet-targeting-pack
+}
+
+package_aspnet-targeting-pack() {
+ pkgdesc='The ASP.NET Core targeting pack'
+ depends=(dotnet-targeting-pack)
+ provides=(aspnet-targeting-pack-3.1)
+ conflicts=(aspnet-targeting-pack-3.1)
+
+ cd dotnet-source-build/artifacts/x64/Release
+
+ install -dm 755 "${pkgdir}"/usr/share/{dotnet,licenses}
+ bsdtar -xf dotnet-sdk-${_sdkver}-arch-x64.tar.gz -C "${pkgdir}"/usr/share/dotnet/ --no-same-owner packs/Microsoft.AspNetCore.App.Ref
+ ln -s dotnet-host "${pkgdir}"/usr/share/licenses/aspnet-targeting-pack
+}
+
# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list