diff --git a/cross/dotnet9-runtime/Makefile b/cross/dotnet9-runtime/Makefile new file mode 100644 index 00000000000..e26b27d6946 --- /dev/null +++ b/cross/dotnet9-runtime/Makefile @@ -0,0 +1,46 @@ +PKG_NAME = aspnetcore-runtime +PKG_VERS = 9.0.0 +PKG_EXT = tar.gz +PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS)-$(PKG_DIST_ARCH).$(PKG_EXT) +PKG_DIST_SITE = https://download.visualstudio.microsoft.com/download/pr/$(PKG_DIST_FOLDER) +PKG_DIR = $(PKG_NAME)-$(PKG_VERS) +EXTRACT_PATH = $(WORK_DIR)/$(PKG_DIR) + +include ../../mk/spksrc.archs.mk + +# use digests with multiple files and individual dist names +# both lists must have the same order +PKG_DIST_ARCH_LIST = linux-x64 linux-arm linux-arm64 +PKG_DIST_SITE_LIST = https://download.visualstudio.microsoft.com/download/pr/e4791376-b70d-431f-bd98-5397c876b946/64ffc29a4edc8fd70b151c2963b38b09/$(PKG_NAME)-$(PKG_VERS)-linux-x64.$(PKG_EXT) +PKG_DIST_SITE_LIST += https://download.visualstudio.microsoft.com/download/pr/84aa8e86-c6a1-4562-84f3-828e836ef26c/96772a224b9ff3be8904b63f37d7cf63/$(PKG_NAME)-$(PKG_VERS)-linux-arm.$(PKG_EXT) +PKG_DIST_SITE_LIST += https://download.visualstudio.microsoft.com/download/pr/b2029a3e-c67e-4905-ad1f-08b164322520/bd68ea0b77f12df21b935da338fdaf25/$(PKG_NAME)-$(PKG_VERS)-linux-arm64.$(PKG_EXT) + +ifeq ($(findstring $(ARCH), $(x64_ARCHS)),$(ARCH)) +PKG_DIST_ARCH = $(word 1,$(PKG_DIST_ARCH_LIST)) +PKG_DIST_FOLDER = $(shell echo $(word 1,$(PKG_DIST_SITE_LIST)) | grep -o1P ".*/download/pr/\K([^/]*/[^/]*)") +endif +ifeq ($(findstring $(ARCH), $(ARMv7_ARCHS)),$(ARCH)) +PKG_DIST_ARCH = $(word 2,$(PKG_DIST_ARCH_LIST)) +PKG_DIST_FOLDER = $(shell echo $(word 2,$(PKG_DIST_SITE_LIST)) | grep -o1P ".*/download/pr/\K([^/]*/[^/]*)") +endif +ifeq ($(findstring $(ARCH), $(ARMv8_ARCHS)),$(ARCH)) +PKG_DIST_ARCH = $(word 3,$(PKG_DIST_ARCH_LIST)) +PKG_DIST_FOLDER = $(shell echo $(word 3,$(PKG_DIST_SITE_LIST)) | grep -o1P ".*/download/pr/\K([^/]*/[^/]*)") +endif + +ifeq ($(PKG_DIST_ARCH),) +$(error Unsupported ARCH $(ARCH)) +endif + +HOMEPAGE = https://dotnet.microsoft.com/ +COMMENT = Free. Cross-platform. Open source. A developer platform for building all apps. +LICENSE = MIT + +INSTALL_TARGET = dotnet_runtime_custom_install + +include ../../mk/spksrc.install-resources.mk + +.PHONY: dotnet_runtime_custom_install +dotnet_runtime_custom_install: + mkdir -p "$(INSTALL_DIR)/$(INSTALL_PREFIX)/share/dotnet/" + tar -cf - -C $(EXTRACT_PATH) . | tar -xf - -C "$(INSTALL_DIR)/$(INSTALL_PREFIX)/share/dotnet/" diff --git a/cross/dotnet9-runtime/PLIST.auto b/cross/dotnet9-runtime/PLIST.auto new file mode 100644 index 00000000000..e69de29bb2d diff --git a/cross/dotnet9-runtime/digests b/cross/dotnet9-runtime/digests new file mode 100644 index 00000000000..c7c30e455db --- /dev/null +++ b/cross/dotnet9-runtime/digests @@ -0,0 +1,9 @@ +aspnetcore-runtime-9.0.0-linux-x64.tar.gz MD5 2c998f639d0accaa5bc95897dcfe3457 +aspnetcore-runtime-9.0.0-linux-x64.tar.gz SHA1 38f09aca9ef8f85812bd01b8bd2fab87fc33aec8 +aspnetcore-runtime-9.0.0-linux-x64.tar.gz SHA256 e00636ad9ca0fbcd777188036b52e520279dc4ac38fde3d14898869d16557ae0 +aspnetcore-runtime-9.0.0-linux-arm.tar.gz MD5 d6464c1cc89a6ebb9b945096b44eeac5 +aspnetcore-runtime-9.0.0-linux-arm.tar.gz SHA1 bbfd89cc61608323789d130f98d49fb7f426cc3d +aspnetcore-runtime-9.0.0-linux-arm.tar.gz SHA256 f3bf3dfe0f21afae8a130c07e67028abd1b80ac5523624729dac39ad0f2d8d9f +aspnetcore-runtime-9.0.0-linux-arm64.tar.gz MD5 3c5728f2b36debee4824a87a9d4af09f +aspnetcore-runtime-9.0.0-linux-arm64.tar.gz SHA1 d2fd672e4f89345e7636c39b8c4677d919082dde +aspnetcore-runtime-9.0.0-linux-arm64.tar.gz SHA256 9811d42c2dc6ffd9b6b69d4f2f6387f0d4add812eddf28ea178b5f751741bf7c diff --git a/spk/dotnet9-runtime/Makefile b/spk/dotnet9-runtime/Makefile new file mode 100644 index 00000000000..0171466aaf3 --- /dev/null +++ b/spk/dotnet9-runtime/Makefile @@ -0,0 +1,40 @@ +SPK_NAME = dotnet9-runtime +SPK_VERS = 9.0.0 +SPK_REV = 1 +SPK_ICON = src/dotnet.png + +OPTIONAL_DEPENDS = cross/libstdc++ +DEPENDS = cross/dotnet9-runtime + +REQUIRED_MIN_DSM = 6.0 + +# Arch exclusions for dotnet +DOTNET_CORE_ARCHS = 1 + +MAINTAINER = brice-fromentin +DESCRIPTION = Free. Cross-platform. Open source. A developer platform for building all apps. This package installs the dotnet runtime and the asp.net.core runtime. +CHANGELOG = "Initial release of dotnet-runtime v9.0.0." + +STARTABLE = no +DISPLAY_NAME = .NET 9 runtime + +HOMEPAGE = https://dotnet.microsoft.com/ +LICENSE = MIT + +include ../../mk/spksrc.common.mk +ifeq ($(call version_lt, ${TCVERSION}, 7.0),1) +# we do not only need the updated libstdc++ library, we also need to +# adjust the library search path for dotnet to use this version. +DEPENDS += cross/libstdc++ +POST_STRIP_TARGET = dotnet_patch_target +endif + +SPK_COMMANDS = share/dotnet/dotnet + +include ../../mk/spksrc.spk.mk + +.PHONY: dotnet_patch_target +# Set library path to use bundled libstdc++ +dotnet_patch_target: + @$(MSG) "Set library runpath in dotnet executable." + @patchelf --set-rpath /var/packages/$(SPK_NAME)/target/lib $(STAGING_DIR)/share/dotnet/dotnet diff --git a/spk/dotnet9-runtime/src/dotnet.png b/spk/dotnet9-runtime/src/dotnet.png new file mode 100644 index 00000000000..e7d830b69c0 Binary files /dev/null and b/spk/dotnet9-runtime/src/dotnet.png differ