Skip to content

Commit

Permalink
New package: dotnet-sdk-3.1.102
Browse files Browse the repository at this point in the history
  • Loading branch information
tesfaye committed Mar 17, 2020
1 parent c217105 commit c43e885
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions srcpkgs/dotnet-sdk-bin/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Template file for 'dotnet-sdk-bin'
pkgname=dotnet-sdk-bin
version=3.1.102
revision=1
archs="x86_64 armv7 aarch64"
wrksrc="${pkgname}-${version}"
create_wrksrc=yes
short_desc="Provides the .NET SDK components, precompiled binaries"
maintainer="Abel Tesfaye <abel-tesfaye@hotmail.com>"
license="MIT"
homepage="https://dotnet.microsoft.com"
nopie=yes

case "${XBPS_TARGET_MACHINE}" in
x86_64)
_arch="x64"
_path="57e63f03-ebdf-4c22-96ff-2b85dc70cf7f/988576869e82a80f4a97ca5a733a5295"
distfiles="https://download.visualstudio.microsoft.com/download/pr/${_path}/dotnet-sdk-${version}-linux-${_arch}.tar.gz"
checksum="e03ceeb5beaf7c228bd8dcbf7712cf12f5ccbfcd6d426afff78bfbd4524ff558"
;;
armv7l)
_arch="arm"
_path="349f13f0-400e-476c-ba10-fe284b35b932/44a5863469051c5cf103129f1423ddb8"
distfiles="https://download.visualstudio.microsoft.com/download/pr/${_path}/dotnet-sdk-${version}-linux-${_arch}.tar.gz"
checksum="52d700dfd60411d18be8ba19581c03d463996381bb0ede6f49e836893519e61b"
;;
aarch64)
_arch="arm64"
_path="2ea7ea69-6110-4c39-a07c-bd4df663e49b/5d60f17a167a5696e63904f7a586d072"
distfiles="https://download.visualstudio.microsoft.com/download/pr/${_path}/dotnet-sdk-${version}-linux-${_arch}.tar.gz"
checksum="5cca7c002bb56059cb1813135c57b83dfe08c987362628d3e10d2ad00c578539"
;;
esac

_target='usr/lib/dotnet'

do_install() {
vmkdir usr/bin
ln -sf "/${_target}/dotnet" "${DESTDIR}/usr/bin/dotnet"
vmkdir "${_target}"
vcopy dotnet "${_target}"
vcopy host "${_target}"
vcopy shared "${_target}"
vcopy sdk "${_target}"
vlicense LICENSE.txt
}

0 comments on commit c43e885

Please sign in to comment.