diff options
author | Reza Talebi <reza.talebi.73@outlook.com> | 2019-09-21 13:51:09 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-09-21 13:51:09 +0700 |
commit | 04873ca20a3fc23af629aa6eb9f3d27fd7c02fb3 (patch) | |
tree | 60fb1f83ae85ea278883847429c23b9d0f35dfc9 /development/dotnet-sdk | |
parent | 533ed20ff36ed7c9acfb82617867e4cb9f7dce9d (diff) | |
download | slackbuilds-04873ca20a3fc23af629aa6eb9f3d27fd7c02fb3.tar.gz |
development/dotnet-sdk: Added (Cross-platform SDK).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/dotnet-sdk')
-rw-r--r-- | development/dotnet-sdk/README | 7 | ||||
-rw-r--r-- | development/dotnet-sdk/doinst.sh | 1 | ||||
-rw-r--r-- | development/dotnet-sdk/dotnet-sdk.SlackBuild | 75 | ||||
-rw-r--r-- | development/dotnet-sdk/dotnet-sdk.info | 10 | ||||
-rw-r--r-- | development/dotnet-sdk/slack-desc | 19 |
5 files changed, 112 insertions, 0 deletions
diff --git a/development/dotnet-sdk/README b/development/dotnet-sdk/README new file mode 100644 index 0000000000..5cb3bae000 --- /dev/null +++ b/development/dotnet-sdk/README @@ -0,0 +1,7 @@ +.NET Core is an open-source, general-purpose development platform +maintained by Microsoft and the .NET community on GitHub. +It's cross-platform (supporting Windows, macOS, and Linux) +and can be used to build device, cloud, and IoT applications. + +Please run 'dotnet new' after installing to initiate the program +and load all of the templates. diff --git a/development/dotnet-sdk/doinst.sh b/development/dotnet-sdk/doinst.sh new file mode 100644 index 0000000000..ec1d7e5165 --- /dev/null +++ b/development/dotnet-sdk/doinst.sh @@ -0,0 +1 @@ +ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet diff --git a/development/dotnet-sdk/dotnet-sdk.SlackBuild b/development/dotnet-sdk/dotnet-sdk.SlackBuild new file mode 100644 index 0000000000..11491ad52d --- /dev/null +++ b/development/dotnet-sdk/dotnet-sdk.SlackBuild @@ -0,0 +1,75 @@ +#!/bin/sh +# +# Slackware build script for dotnet-sdk. +# +# Copyright 2019 Reza Talebi, Shahin Shahr, Iran. +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=dotnet-sdk +VERSION=${VERSION:-2.2.402} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + + +set -e + +if [ "$( uname -m )" = "x86_64" ]; then + ARCH="x86_x64" + ARCHITECTURE="x64" + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" + BITS="amd64" +else + echo "Package for $(uname -m) architecture is not available." + exit 1 +fi + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-${VERSION}-${BUILD} +mkdir -p $PRGNAM-${VERSION}-${BUILD} +cd $PKG +mkdir -p usr/share/dotnet +tar -zxf $CWD/$PRGNAM-${VERSION}-linux-${ARCHITECTURE}.tar.gz -C usr/share/dotnet +chown -R root:root usr/share/dotnet + +mkdir -p usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -c n $OUTPUT/$PRGNAM-$VERSION-$BUILD-$ARCH$TAG.${PKGTYPE:-tgz} diff --git a/development/dotnet-sdk/dotnet-sdk.info b/development/dotnet-sdk/dotnet-sdk.info new file mode 100644 index 0000000000..5ac33811db --- /dev/null +++ b/development/dotnet-sdk/dotnet-sdk.info @@ -0,0 +1,10 @@ +PRGNAM="dotnet-sdk" +VERSION="2.2.402" +HOMEPAGE="https://dotnet.microsoft.com/" +DOWNLOAD="https://download.visualstudio.microsoft.com/download/pr/46411df1-f625-45c8-b5e7-08ab736d3daa/0fbc446088b471b0a483f42eb3cbf7a2/dotnet-sdk-2.2.402-linux-x64.tar.gz" +MD5SUM="D5966CCB93C541B04ED01442BB6D37A9" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Reza Talebi" +EMAIL="reza.talebi.73@outlook.com" diff --git a/development/dotnet-sdk/slack-desc b/development/dotnet-sdk/slack-desc new file mode 100644 index 0000000000..91b0a95552 --- /dev/null +++ b/development/dotnet-sdk/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +dotnet-sdk: dotnet-sdk (Cross-platform development framework) +dotnet-sdk: +dotnet-sdk: .NET Core is an open-source, general-purpose development +dotnet-sdk: platform maintained by Microsoft and the .NET community on +dotnet-sdk: GitHub. It's cross-platform (supporting Windows, macOS, and Linux) +dotnet-sdk: and can be used to build device, cloud, and IoT applications. +dotnet-sdk: Please run 'dotnet new' after installing to initiate the program +dotnet-sdk: and load all of the templates. +dotnet-sdk: +dotnet-sdk: https://dotnet.microsoft.com/ +dotnet-sdk: |